This help article is for an old version of Direct Mail.
Direct Mail supports using regular expressions in the following locations:
- The "Find Addresses Matching Rules" window (via Edit > Find > Find Addresses Matching Rules in the menu bar). When creating your search rules, the "matches" operator interprets the text that you type in as a regular expression.
- Smart groups. When creating your filtering rules, the "matches" operator interprets the text that you type in as a regular expression.
- Autoresponder recipient filtering. When creating your filtering rules, the "matches" operator interprets the text that you type in as a regular expression.
- Template section visibility rules. When creating your visibility rules, the "matches" operator interprets the text that you type in as a regular expression.
Syntax
Regular expressions in Direct Mail use the ICU Regular Expression syntax and are case-insensitive.
Regular expression patterns in Direct Mail are implicitly anchored to the start and end of the subject string. In other words, if you enter the following pattern:
friends?
…it is considered the equivalent of this pattern:
^friends?$