Cisco Cisco ASR 5000
ACS Ruledef Configuration Mode Commands
▀ http referer
▄ Command Line Interface Reference, StarOS Release 18
902
Regex Character
Description
\\
Match the backslash character
Bracketed range [0-
9]
9]
Match any single character from the range
A leading ^ in a
range
range
Do not match any in the range. All other characters represent themselves.
.\x##
Any ASCII character as specified in two-digit hex notation.
For example, \x5A yields a “Z”.
For example, \x5A yields a “Z”.
|
Specify OR regular expression operator
Important:
When using the regex operator “|” in regex expressions, always wrap the
string in double quotes.
For example, if you want to match the string "pqr” OR “xyz”, you must configure it as:
http host regex "pqr|xyz"
.
Example
The following command defines a rule expression to match the HTTP referer
cricket.espn.com
:
http referer = cricket.espn.com