Mathematica Pattern Searching and Refactoring


The Mathematica pattern matcher is one of its core features, around which much of the system and particularly the language is based. Mathematica patterns give a concise and powerful syntax that can match parts of a tree expression and then carry out replacements or modifications.

The Wolfram Workbench contains a new and powerful implementation of Mathematica patterns that provides some innovative functionality for searching and refactoring code. One important feature is that replacements are actually done on the textual source. This preserves any formatting or comments in the code.

The following topics are available: