NET/MASTER Management Services (MS) System Management Guide
Regular Expression Syntax
Regular Expressions
E–4 115414 NonStop NET/MASTER MS System Management Guide
metacharacter
specifies a metacharacter, that is, a character that changes the meaning of
another character or sequence of characters.
The backslash (\) is the override character. If the character following the
backslash is a parenthesis, square bracket, vertical bar, or metacharacter,
the character is taken literally and treated as a normal character. For
example:
Term Meaning
\\ Matches a backslash.
\] Matches a closing square bracket.
[\^B-De] Matches ^, B, C, D, or e.
[\^B-De[\]] Matches ^, B, C, D, e, [, or ].
[0-9\<>?] Matches a digit from 0 through 9, \, <, >, or ?.
More text\? Matches More text?.
\(\[Y\],N\) Matches ([Y],N).
If the backslash is followed by a specific numeric specification, the
sequence represents the character that corresponds to the numeric
specification, as follows:
\0 followed by zero through three digits is an octal number.
\1 through \9 followed by zero through two digits is a decimal
number.
\x or \X followed by one or two of the following characters is a
hexadecimal number: 0 through 9, A through F, a through f.
You can use octal, decimal, and hexadecimal numbers to include
nondisplayable characters. For example:
Term Meaning
\013 Matches a carriage return.
\11 Matches a carriage return.
\x0B Matches a carriage return.
If the backslash is followed by a specific letter, the sequence represents a
special character, as follows:
\b represents a backspace
\f represents a form feed
\n represents a newline character
\r represents a carriage return
\s represents a space
\t represents a tab