Route Policies
7705 SAR OS Router Configuration Guide 419
Path whose first AS number is 100 and second AS 
number is either 11 or 22
100 (11 | 22) .* 100 11
100 22 200 300
AS path 11, 22, or 33  [11 22 33] 11
22 
33
Range of AS numbers to match a single AS number 10-14  Null AS path 10 or 11 or 
12
[10-12]* Null AS path 10 or 11 or 
12
10 10 or 10 11 or 10 12
11 10 or 11 11 or 11 12
12 10 or 12 11 or 12 12
…
Zero or one occurrence of AS number 11  11? or 11{0,1}  Null AS path
11
One through four occurrences of AS number 11  11{1,4} 11
11 11
11 11 11
11 11 11 11
One through four occurrences of AS number 11 
followed by one occurrence of AS number 22
11{1,4} 22  11 22
11 11 22 
11 11 11 22
11 11 11 11 22
Path of any length, except nonexistent, whose second 
AS number can be anything, including nonexistent
. .* or . .{0,}  100
100 200
11 22 33 44 55
AS number is 100 and community value is 200 ^100:200$  100:200
AS number is 11 or 22 and community value is any 
number
^((11)|(22)):
(.*)$
11:100
22:100
11:200
…
Table 62: AS Path and Community Regular Expression Examples (Continued)
AS Path to Match Criteria Regular Expression Examples of Matches