Regular expression
|
Description
|
---|---|
.
|
Any character (including newline)
|
[abcn-z]
|
Any of the characters a, b, c, n, o, p, ..., z
|
[^abcn-z]
|
Any characters except a, b, c, n, o, p, ..., z
|
\w
|
Any alphanumeric character (including accents) or underscore (_)
|
\l
|
Any lower-case character (including accents)
|
\u
|
Any upper-case character (including accents)
|
\d
|
Any numeric character
|
\s
|
A whitespace character
|
^xxx
|
xxx at the beginning of a line
|
xxx\r$
|
xxx at the end of a line. In UNICOM Intelligence Professional, you must use \r$ to find text at the end of a line instead of the more typical $.
|
xxx|yyy
|
Either xxx or yyy
|
(xxx)
|
Grouping (subexpression)
|
x*
|
Zero or more occurrences of x
|
x+
|
One or more occurrences of x
|
x?
|
Zero or one occurrences of x
|
(xxx){ m }
|
Exactly m occurrences of xxx
|
(xxx){ m , n }
|
At least m and at most n occurrences of xxx
|
\
|
The escape character that you use to match characters that have a special meaning in regular expressions, such as the following characters , . ? { } [ ] ( ) $ ^ *. For example, to match the { character, you would specify \{.
|
Expression
|
Matches
|
---|---|
abcd
|
The character sequence abcd anywhere in a line
|
^abcd
|
The character sequence abcd at the beginning of a line
|
^\s*abcd
|
The character sequence abcd at the beginning of a line after zero or more spaces
|
abcd\r$
|
The character sequence abcd at the end of a line
|
\.txt\r$
|
The character sequence .txt at the end of a line
|
[^A-Z]+
|
Any character that is not an uppercase English letter
|
[0-9]+\r$
|
Any digits in the range 0-9 that appear at the end of a line
|
^\$
|
A dollar sign at the beginning of a line
|
\[\]
|
The [ character and the ] character
|