Previous Next
Find and Replace Filters dialog

Click for full size, then use Back button

The Find and Replace Filters dialog, opened by pressing the Filter... button, is used for creating, selecting and maintaining regular expression filters. You can also use the dialog for applying a once-only filter.
For more information on regular expressions in SNiFF+, please refer to Regular Expressions in SNiFF+.
Modification buttons

Button Description
Save If the name of the filter is unique, a new regular expression filter is added to the Regular Expressions List. If an existing filter has been changed, the changes are saved.
Delete Removes the selected regular expression filter from the list.
Reset Resets the current filter to show all matches from the latest retrieval.

Each defined regular expression filter that you save must have at least:

Saving the name on its own is not usually very useful, so it makes sense to define at least
  • a retrieve filter, which is applied in the retrieve process.

You may want to use the output of the retrieve filter to define
  • a replace filter, which is applied in the replace process.

Name field
To make it easier to quickly find and identify the regular expression, each regular expression is associated with a unique name. Entering the name of an existing expression automatically selects the expression in the list.
Retrieve field
If an existing filter is selected, the "retrieve" part is copied into the Retrieve field. The "replace" part (if any) is copied into the Replace field. Retrieve filters can also be created and edited in this field. The filter here is applied in a re-query of the current set of matches when you press Apply or Ok.
Replace field
If an existing filter is selected, the "replace" part is copied into the Replace field. Modifiers can also be created and edited in this field. The filter here is applied in replacing matched lines when you press Apply or Ok.
The Regular Expressions List
Defined filters are listed in the Regular Expressions List. The name of the filter is followed by the corresponding regular expression. If you create a combined retrieve-and-replace filter, the name is followed by the retrieve part of the filter in the next column, and then the replace part of the filter in third column. Items are added to the Regular Expressions List using the Save button for new names in the Name field, or by pressing Ok.
Pre-defined filters

Name Filters for
call
method, function or procedure calls
assignment
value assignments
comparison
parts of a comparison
new
dynamic allocations
>MEMBER
a dynamic member of any object
>MEMBER(
a dynamic member function of any objects
Object>member
an object; all dynamic members are listed
OBJECT>member(
an object; only dynamic member functions are listed
class::MEMBER
any static member of any class
class::MEMBER(
a static member function of any class
CLASS::member
a class; all static members are listed
CLASS::member(
a class; only static member functions are listed
CLASS<...>
a template class
whole word
a whole word

Control buttons

Button Description
Ok If the entry in the Name field is unique, a new filter is added to the Regular Expressions List and saved. If an existing filter has been changed, the changes are saved. If anything is entered in the Regular Expressions fields, the filter is applied. The dialog is closed.
Cancel Discards any changes made in the dialog and closes it.
Apply Adds a new regular expression filter to the List and applies it in the Retriever. The filter is, however, not saved. The dialog remains open.

Previous Next