Cisco Cisco ASR 5000

Page of 9109
ACS Ruledef Configuration Mode Commands   
▀  http url 
 
 
▄  Command Line Interface Reference, StarOS Release 18 
918 
   
Regex Character
 
Description
 
\* 
Match the asterisk character 
\a 
Match the Alert (ASCII 7) character 
\b 
Match the Backspace (ASCII 8) character 
\f 
Match the Form-feed (ASCII 12) character 
\n 
Match the New line (ASCII 10) character 
\r 
Match the Carriage return (ASCII 13) character 
\t 
Match the Tab (ASCII 9) character 
\v 
Match the Vertical tab (ASCII 11) character 
\0 
Match the Null (ASCII 0) character 
\\ 
Match the backslash character 
Bracketed range [0-
9] 
Match any single character from the range 
A leading ^ in a 
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”. 
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 URL 
http://rfc.ietf.org/rfc/rfc1738.txt
http url = http://rfc.ietf.org/rfc/rfc1738.txt 
The following command defines a regex rule expression to match either of the following or similar values in 
the HTTP URL string: http://yahoo.com, http://www.yahoo.co.in, http://yahoo.com/news. 
http url regex "(http://|http://www).yahoo.(co.in|com)*"