eManager
provides the following shorthand for writing complicated regular expressions.
eManager 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 IMSS will
not translate that shorthand expression to a regular expression.
{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} |
. |
eManager also provides the following meta-symbols.
The difference between shorthand and meta-symbols is that meta-symbols
can be within a bracket expression.
\s |
[[:space:]] |
\S |
[^[:space:]] |
\d |
[[:digit:]] |
\D |
[^[:digit:]] |
\w |
[_[:alnum:]] |
\W |
[^_[:alnum:]] |