Table 6: Sample Regular Expressions - Juniper JUNOSE SOFTWARE FOR E SERIES 11.3.X - IP SERVICES CONFIGURATION GUIDE 2010-10-01 Configuration Manual

Software for e series broadband services routers ip services configuration guide
Table of Contents

Advertisement

Copyright © 2010, Juniper Networks, Inc.

Table 6: Sample Regular Expressions

Regular
Matched AS-Path or Community
Expression
Attribute
^12
Begins with 12
[^12]
Includes any numeral except 1 or 2
305$
Ends with 305
.5
Includes any one character followed by
the numeral 5
1.9
Includes a sequence of three characters,
where the first character is numeral 1 and
the third character is numeral 9
.*
Includes any character; matches all AS
paths and community lists
42*
Includes a number that has a numeral 4
followed by zero or more instances of the
numeral 2
1(37)*
Includes a sequence that has a numeral
1 followed by zero or more instances of
the pattern 37
42+
Includes a number that has a numeral 4
immediately followed by one or more
instances of the numeral 2
1(37)+
Includes a sequence that has a numeral
1 immediately followed by one or more
instances of the pattern 37
Chapter 1: Configuring Routing Policy
Example
12 23 4212 629
121245 19
but not
58 12 7
44 73 465 69
8
but not
1145 1912
2 49
89 611 305305
42 30519 1305
6666:305
89 611 3533 252 12 998
600:500
179 35 2433 252 129 48
2129 14600:2129
321:94
67 42 51314
33 252 422 483142
4 339 7831422
137 42 211373737 29 4
1
but not
4 3737 78
67 42 2133 252 422 48
but not
4 329 78
1373737 29 44 37137 78
137 42 21
but not
4 372 2121 37 5
1 456 881
45

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junose 11.3

Table of Contents