NET/MASTER Management Services (MS) System Management Guide
Regular Expression Syntax
Regular Expressions
115414 NonStop NET/MASTER MS System Management Guide E–5
If the backslash is followed by any other character, the backslash is taken
literally and treated as a backslash.
A period (.) matches a single character in a specific position. For example:
Term Meaning
a.c Matches any sequence of three characters beginning with a and
ending with c. For example, aac, abc, aAc, aBc, a0c, a9c, a<c, and
a>c.
[A-Z]... Matches any uppercase letter followed by three other characters.
For example, A123, Axyz, and A<>?.
\$[a-zA-Z]...... Matches a dollar sign, followed by any alphabetic character, followed
by six other characters. For example, $DATAZZZ, $A_XABCD,
$AAAAAAA, and $A0000**.
(
term
[ |
term
] … )
specifies a group of terms separated by vertical lines. Parentheses (( )) group
terms and the vertical line (|) indicates mutually exclusive terms in the group.
For example:
Term Matches
A(B|C)D Matches ABD or ACD.
AB|CD Matches AB or CD.
closure-operator
specifies a closure operator, that is, an operator that determines how many
repetitions of a term are required or allowed.
A question mark (?) matches one or zero of the preceding characters. For
example:
Term Meaning
[0-9]?-> Matches one or zero digits followed by ->. For example, ->, 1->,
2->, and 3->.
\$[a-zA-Z][a-zA-Z0-9]? Matches a dollar sign, followed by any alphabetic character,
followed by one or zero alphanumeric characters. For example,
$AZ, $a9, $z, and $X.