Regular Expressions

Applications Manager supports usage of Regular Expressions (Regex) while searching for data. A regular expression is a special sequence of characters defines a search pattern for strings.

Regular Expression Syntax:

Here is the table listing down all the regular expression metacharacter syntax available in Java:

Matches beginning of line.
Matches end of line.
Matches any single character except newline. Using m option allows it to match newline as well.
Matches any single character in brackets.
Matches any single character not in brackets
Beginning of entire string
End of entire string
End of entire string except allowable final line terminator.
Matches 0 or more occurrences of preceding expression.
Matches 1 or more of the previous thing
Matches 0 or 1 occurrence of preceding expression.
re{ n}
Matches exactly n number of occurrences of preceding expression.
re{ n,}
Matches n or more occurrences of preceding expression.
re{ n, m}
Matches at least n and at most m occurrences of preceding expression.
a| b
Matches either a or b.
Groups regular expressions and remembers matched text.
(?: re)
Groups regular expressions without remembering matched text.
(?> re)
Matches independent pattern without backtracking.
Matches word characters.
Matches nonword characters.
Matches whitespace. Equivalent to [\t\n\r\f].
Matches nonwhitespace.
Matches digits. Equivalent to [0-9].
Matches nondigits.
Matches beginning of string.
Matches end of string. If a newline exists, it matches just before newline.
Matches end of string.
Matches point where last match finished.
Back-reference to capture group number "n"
Matches word boundaries when outside brackets. Matches backspace (0x08) when inside brackets.
Matches nonword boundaries.
\n, \t, etc.
Matches newlines, carriage returns, tabs, etc.
Escape (quote) all characters up to \E
Ends quoting begun with \Q

See Also

Monitor Information - File / Directory Monitor | Create Other New Monitors