Syntax
Regular expressions on FortiMail units use Perl-style syntax. The following table lists some example regular expression syntax, and describes strings that match and do not match.
Regular Expression |
Matches and Non-Matches |
||
---|---|---|---|
|
|
||
|
|
||
|
|
||
|
Either |
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
Either |
||
|
Either |
||
|
Match any single uppercase or lowercase letter in the English language alphabet, but not numbers or special characters. |
||
|
Any combination of one or more |
||
|
Any combination of one or more characters that does not contain an |
||
|
Any two decimal digits, such as |
||
|
A word (a non-empty sequence of alphanumeric characters and underscores), such as |
||
|
|
||
|
|
||
|
|
||
|
The character or emoji |
||
|
|