Using wildcards

Wildcards are characters that take form of an asterisk (*) followed or preceded by a particular character and are used to replace other characters in strings, e.g. *test, *, *test*, *@company*.

In CodeTwo Exchange Rules Pro wildcards may be used to:

  • define phrases,
  • define email addresses.

Each usage type defined above corresponds to the particular feature. Therefore, these types are limited to certain features available in the program:

  • Wildcards for phrases can be used only in the Subject and Body conditions or the Remove Sensitive Content action.
  • Wildcards for email addresses can be used only for the Sender or Recipient conditions. Additionally, you can also use them while defining recipients' email address in the blacklists.


Please note that you can use asterisk individually in phrases and email addresses before or after a string of characters or simultaneously in front and after a string, e.g. if you define characters with wildcards: *comp, comp*, *comp*, the following strings will be recognized: xxxxxcomp, compxxxxx, xxxxxcompxxxxx. Furthermore, you cannot use a wildcard inside a string of characters within phrases because it won't be recognized as a wildcard yet treated as a normal character, e.g. co*mp. However, you can use it inside email addresses, e.g. m*

Defining wildcards for phrases

To define wildcards for phrases in Subject or Body conditions, add these conditions to a rule, choose contains sensitive content operator and click Edit. Next in the Sensitive content configuration window mark the dictionary and click Open dictionary. In the Edit categories window hit Add on the right hand side under phrases. Within the New phrase editor, choose Wildcard from the phrase Type context menu and add string of characters including asterisk (Fig. 1.).

Fig. 1. Defining wildcards for phrases in Subject and Body conditions.

To define wildcards for phrases in Remove Sensitive Content action add the action to a rule, tick the dictionary and click Edit categories. In the Edit categories window hit Add. Once the New phrase editor opens, expand the phrase Type menu and choose wildcard (Fig. 2.). Please be advised that the search is always performed case-insensitively.

Fig. 2. Defining wildcards for phrases in Remove Sensitive Content action.

Defining wildcards for email addresses

To define wildcards in regards to email addresses in Sender and Recipient conditions add these conditions to a rule, choose matches email address operator and click Edit. In the Email addresses editor, enter a string of characters preceded or followed by an asterisk. The matching is performed case-insensitively as well.

Fig. 3. Defining wildcards for email addresses in Sender and Recipient conditions.

See next

Log files - this article describes the diagnostic data collected during the program's operation that can be used to review any issues if the program deviates from its standard behavior.

Was this information useful?