This article contains information on using text strings and regular expressions to define content examination rules, including examples for matching credit card numbers, multiple entities, and specific combinations with required or excluded terms.
Text Strings and Regular Expression
The following search terms would require the word 'Credit Card' and a valid credit card number before a content hit is found. No content hit will be logged if only one of the specified search terms is found.
| Word/Phrase Match List | Email Content Required to Trigger Definition |
|---|---|
| Credit Card 4111 1111 1111 1111 | 1 ("Credit Card") AND (regex card number 4(?<=\b(? |
Each search term must be wrapped in brackets () followed by the AND operator and your next search term. Phrases must be wrapped in brackets and speech marks. For example, ("Credit Card"). Only one AND operator can be used per line in the Search Word/Phrase match list...
Multiple Entities
The following triggers a match when the presence of two entities is found:
1 (detect SIN) AND (detect Names)
Either One of Two Entities
The following triggers a match when the presence of one of two entities is found:
1 (detect drivers_license_us) OR (detect drivers_license_uk)
Combinations
Activation score = 4
| Word / Phrase Match List | Email Content Required to Trigger Definition |
|---|---|
| 0 required “Project Alpha” 5 “budget overrun” 4 urgent 2 update |
The phrase ‘Project Alpha’ MUST be present AND 1 occurrence of ‘budget overrun’ OR 1 occurrence of ‘urgent’ OR 2 occurrences of ‘update’ |
| 0 exclude “Project Delta” 5 “budget overrun” 4 urgent 2 update |
The phrase ‘Project Delta’ MUST NOT be present AND 1 occurrence of ‘budget overrun’ OR 1 occurrence of ‘urgent’ OR 2 occurrences of ‘update’ |
The Required / Exclude operators must be used in the first line of the Content Examination definition.
Comments
Please sign in to leave a comment.