Operators
The regular expression operators are listed in
Examples of AS path and community string regular expressions are listed in
7705 SAR OS Router Configuration Guide
Operator
Description
|
Matches the term on alternate sides of the pipe
*
Matches multiple occurrences of the term
?
Matches 0 or 1 occurrence of the term
+
Matches 1 or more occurrence of the term
( )
Used to parenthesize so a regular expression is considered as one term
[ ]
Used to demarcate a set of elementary or range terms
-
Used between the start and end of a range
{m,n}
Matches at least m and at most n repetitions of the term
{m}
Matches exactly m repetitions of the term
{m,}
Matches m or more repetitions of the term
^
Matches the beginning of the string — only allowed for communities
$
Matches the end of the string — only allowed for communities
\
An escape character to indicate that the following character is a match
criteria and not a grouping delimiter
Table
Table 61: Regular Expression Operators
Route Policies
61.
Table
62.
417