Owner's Manual

481
Examples of Defining Community Attribute Regular Expressions
Policy Options -> Policy Statements
This screen defines a routing policy, including subroutine policies.
[ ] Set of characters. One character from the set can match. To specify the start and end of a
range, use a hyphen (-). To specify a set of characters that do not match, use the caret (^) as
the first character after the opening square bracket ([).
( ) A group of terms that are enclosed in the parentheses. If enclosed in quotation marks with no
intervening space (“()”), indicates a null. Intervening space between the parentheses and the
terms is ignored.
Community Attribute to Match Regular Expression Example Matches
AS number is 56 or 78. Community value
is any number.
^((56) | (78)):(.*)$ 56:1000
78:65000
AS number is 56. Community value is any
number that starts with 2.
^56:(2.*)$ 56:2
56:222
56:234
AS number is any number. Community
value is any number that ends with 5, 7, or
9.
^(.*):(.*[579])$ 1234:5
78:2357
34:65009
AS number is 56 or 78. Community value
is any number that starts with 2 and ends
with 2 through 8.
^((56) | (78)):(2.*[2-8])$ 56:22
56:21197
78:2678