Keywords
If you select Keywords (KW), you can enter the strings to search for or import keywords. You can match specific words or regular expressions in email content.
We search for keywords in the following locations:
- Subject
- Body
- Attachment name
- Attachment content
Where we search depends on the selection you make in Search in.
When we find a keyword in one location, we stop searching there and start searching in the next location. We only report the first instance of a keyword in each location.
You can filter words and phrases or use a regular expression. If you want to add keywords using regular expressions within the context of Sophos Email Data control rules, you can use up to 50 characters. Your regular expressions must comply with the Perl regular expression syntax from the Boost library. See Perl syntax.
Restriction
For performance reasons, we don't support regular expressions that contain groups. A group is a sequence of characters enclosed in parentheses.
You can test your regular expression with BRegexTest, a Windows executable available from Google Code. See Google Code Archive: bregextest.