Table 6: Sample Regular Expressions
(continued)
Example
Matched AS-Path or Community
Attribute
Regular
Expression
1373737 29 44 37137 78
137 42 21
but not
4 372 2121 37 5
1 456 881
Includes a sequence that has a numeral
1 immediately followed by
one or more
instances of the pattern 37
1(37)+
67 42 714 359 78
but not
33 252 422 48
Includes a number that has a numeral
4 followed by
zero or only one
instance
of the numeral 2
42?
137 42 2153 612 49
1
but not
4 13737 78
Includes a sequence that has a numeral
1 followed by
zero or only one
instance
of the pattern 37
1(37)?
600 700 10025 7771
In the following examples,
the three characters are 7,
space, 8:
307 800 6127 888 999
Includes a sequence of three characters,
where the first character is numeral 7
7..
6127 723 999 700 100 600
but not
25 7771307 800
Includes a number in the range 700 –
799
^7..
723 700
but not
25 7771307 800
6127 723 999700 100 600
Consists only of a number in the range
700 – 799
^7..$
60 4334 545 92
200710
86 53
The regular expression [162]
has the same results.
Includes any of the numerals 6, 2, or 1
[621]
Includes any number in the range 0–9
[0-9]
(22 431) 102(22 431) 55 76
but not
43 (22 431) 522 431 59
(AS-path attribute only) Begins with the
AS-confed-set or AS-confed-seq (22 431)
^\(22 431\)
48
■
Using Regular Expressions
JUNOSe 11.0.x IP Services Configuration Guide
Содержание JUNOSE 11.0.X IP SERVICES
Страница 6: ...vi...
Страница 8: ...viii JUNOSe 11 0 x IP Services Configuration Guide...
Страница 18: ...xviii Table of Contents JUNOSe 11 0 x IP Services Configuration Guide...
Страница 20: ...xx List of Figures JUNOSe 11 0 x IP Services Configuration Guide...
Страница 22: ...xxii List of Tables JUNOSe 11 0 x IP Services Configuration Guide...
Страница 28: ...2 Chapters JUNOSe 11 0 x IP Services Configuration Guide...
Страница 138: ...112 Monitoring J Flow Statistics JUNOSe 11 0 x IP Services Configuration Guide...
Страница 286: ...260 Monitoring IP Tunnels JUNOSe 11 0 x IP Services Configuration Guide...
Страница 312: ...286 Monitoring IP Reassembly JUNOSe 11 0 x IP Services Configuration Guide...
Страница 357: ...Part 2 Index Index on page 333 Index 331...
Страница 358: ...332 Index JUNOSe 11 0 x IP Services Configuration Guide...