6.7.4.3. RegexpMatcher

A RegexpMatcher consists of two string lists, describing the regular expressions to be found (Match list) and, optionally, another list of expressions that should be ignored (Ignore list) when processing the input. By default, matches are case insensitive. For case sensitive matches, uncheck the Ignore case option.

Note

The string lists are stored in the policy.py configuration file.

Example 6.11. Defining a RegexpMatcher
Sample RegexpMatcher

Figure 6.63. Sample RegexpMatcher

The matcher below defines a RegexpMatcher called Smtpdomains, with only the smtp.example.com domain in its match list.

Python:
MatcherPolicy(name="Smtpdomains", matcher=RegexpMatcher\
(match_list=("smtp.example.com",), ignore_list=None))