Regular Expression Examples; Table 6: Sample Regular Expressions - Juniper JUNOSE 11.0.X IP SERVICES Configuration Manual

For e series broadband services routers - ip services configuration
Table of Contents

Advertisement

Regular Expression Examples

Table 6 on page 47 lists some representative regular expressions that you might use
in an AS-path access list or community list, along with sample attribute values that
match or do not match the regular expression.

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
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
Using Regular Expressions
47

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junose 11.0.x

Table of Contents