Shorthand and meta-symbol

Trend Micro Email Security provides the following shorthand for writing complicated regular expressions. Trend Micro Email Security will pre-process expressions and translate the shorthand into regular expressions.

For example, {D}+ would be translated to [0-9]+. If a shorthand expression is enclosed in brackets (example: {}) or double-quotes, then Trend Micro Email Security will not translate that shorthand expression to a regular expression.

SHORTHAND

DESCRIPTION

{D}

[0-9]

{L}

[A-Za-z]

{SP}

[(),;\.\\<>@\[\]:]

{NUMBER}

[0-9]+

{WORD}

[A-Za-z]+

{CR}

\r

{LF}

\n

{LWSP}

[ \t]

{CRLF}

(\r\n)

{WSP}

[ \t\f]+

{ALLC}

.

Trend Micro Email Security also provides the following meta-symbols. The difference between shorthand and meta-symbols is that meta-symbols can be within a bracket expression.

META-SYMBOL

DESCRIPTION

\s

[[:space:]]

\S

[^[:space:]]

\d

[[:digit:]]

\D

[^[:digit:]]

\w

[_[:alnum:]]

\W

[^_[:alnum:]]