Previous Next
Filtering

You will notice that there are include statements in the above illustration and if you change these, you won't be able to compile the project. Lets now exclude all include references. By doing so we won't have to change any file names and can filter for symbols only. We will do so by using regular expressions. Regular expressions (regex) are a powerful means to specify patterns for filters and search strings in the various SNiFF+ tools, especially in the Retriever. Basically, regular expressions are a system of matching character patterns. For more information, please see Reference Guide -- Regular Expressions.

  • In the Retriever, press the Filter... button to open the Find and Replace Filters dialog.

In the Find and Replace Filters dialog

Click for full size, then use Back button

  1. In the Name field, enter a name for the regular expression e.g., No Includes.
  2. In the Retrieve field, enter !#include . An exclamation point at the beginning of a regular expression means "match everything except the following regex".
    Note that this is a SNiFF+ specific implementation and not usually part of the regular expression syntax.
  3. Press Ok to add the new regular expression to the Regular Expression List, to apply the regular expression to the list of matches and to close the dialog.
    As you can see, there are now only 12 matches in 3 files.