Cisco Cisco Packet Data Gateway (PDG) Prospecto
ACS Ruledef Configuration Mode Commands
▀ http uri
▄ Cisco ASR 5x00 Command Line Interface Reference
868
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
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)"
9].com/search?form=(pdf|zip)"