Cisco Cisco ASR 5700

Page of 8994
  ACS Ruledef Configuration Mode Commands 
http uri  ▀   
 
Command Line Interface Reference, StarOS Release 17  ▄  
 
   
905 
Regex Character
 
Description
 
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 URI string 
http://www.somehost.com
http uri = http://www.somehost.com 
The following command defines a regex rule expression to match either of the following or similar values in 
the HTTP URI string: http://server19.com/search?form=zip, http://server20.com/search?form=pdf 
http uri regex "(http://|http://www).server[0-2][0-
9].com/search?form=(pdf|zip)"