Nortel Networks 4050 Manuale Utente

Pagina di 922
340 Chapter 7 TunnelGuard SRS Builder
320818-A
 
 describes supported constructs for string-based regular expressions.
Table 67   
Constructs for string based regular expressions (Sheet 1 of 2)
String regular expression
Description
x
The character x
.
Any character
\\
The backslash character
\0n
The character with octal value 0(0 <= n <= 7)
\xhh
The character with the hexidecimal value 0xhh
\t
The tab character (‘\u0009’)
\n
The newline (line feed) character (‘\u000A’)
\d
A digit: [0-9]
\D
A non-digit: [^0-9]
\s
A whitespace character: [\t\n\x0B\f\r]
\S
A non=whitespace character: [^\s]
\w
A word character: [a-zA-Z_0-9]
\W
A non-word character: [^\w]
[abc]
a, b, or c
[^abc]
not a, b, or c
[a-z]
any character a through z
[a-d[m-p]]
a through d, or m through p: [a-dm-p] (union)
[a-z&&[def]]
d, e, or f (intersection)
[a-z&&[^bc]]
a through z, except for b and c: [ad-z] (subtraction)
X?
X, once or not at all
X*
X, zero or more times
X+
X, one or more times
X{n}
X,  exactly  n times
X{n,}
X, at least n times
X{n,m}
X, at least n but not more than m times
\
Nothing, but quotes the following character
\Q
Nothing, but quotes all characters until \E
\E
Nothing, but ends quoting started by \Q
^
The beginning of a line