Regex Flashcards
_ (underscore)
matches a space
start of a string
$
end of a string
[ ]
matches single character or nesting within a range
- (hyphen)
indicates a range of numbers in brackets
[^]
excludes the characters listed in brackets
( ) (parenthesis)
used for nesting of search patterns
(pipe)
provides βORβ functionality to the query
. (period)
matches a single character including a space
- (asterisk)
matches 0 or more characters or patterns
+
matches one or more instances of the character or pattern
?
matches one or no instances of the character or pattern
^$
Local originating routes
permit ^200_
Only routes from AS 200
permit _200$
Only routes originating from AS 200
permit 200
Only routes that pass through AS 200
permit ^[ 0-9] + [0-9] + [0-9] +?
Routes with 3 or fewer AS_PATH entries