NET/MASTER Management Services (MS) System Management Guide
Regular Expression Syntax
Regular Expressions
E–6 115414 NonStop NET/MASTER MS System Management Guide
An asterisk (*) matches zero or more of the preceding characters. For example:
Term Meaning
[0-9]*-> Matches zero or more digits followed by ->. For example, ->, 1->,
2->, 3->, 12->, 123->, and 1234->.
\$[a-zA-Z][a-zA-Z0-9]* Matches a dollar sign, followed by any alphabetic character,
followed by zero or more alphanumeric characters. For example,
$a, $ASP, $SNAX01a, and $DATA.
A plus sign (+) matches one or more of the preceding characters. For example:
Term Meaning
[0-9]+-> Matches one or more digits followed by ->. For example, 1->,
200->, 234->, and 999999->.
TACL|[0-9]+> Matches TACL> or one or more digits followed by >. For
example, 1>, 200>, 234>, and 999999>.
\$[a-zA-Z][a-zA-Z0-9]+ Matches a dollar sign, followed by any alphabetic character,
followed by one or more alphanumeric characters. For example,
$ASP, $AS, $ASS, and $A12.
A closure operator in the following form matches a minimum and maximum
number of characters:
{
min
[ , [
max
] ] }
min
specifies a number from 0 through 255. The value of
min
must be less
than or equal to the value of
max
.
max
specifies a number from 0 through 255. The value of
max
must be greater
than or equal to the value of
min
.
This matches at least
min
and at most
max
of the preceding characters. If only
min
is specified, exactly
min
occurrences of the preceding characters are
required. If the comma (,) is included,
min
occurrences or more of the
preceding characters are required. (If a brace occurs in any other context, it is
treated as a normal character.) For example:
Term Meaning
A{1,5} Matches A, AA, AAA, AAAA, and AAAAA.
A{3} Matches AAA exactly.
A{3,} Matches AAA, AAAA, AAAAA, and so on.