Cisco Cisco ASR 5700
ACS Ruledef Configuration Mode Commands
▀ http host
▄ Command Line Interface Reference, StarOS Release 17
886
Regex Character
Description
.\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
host1
in HTTP Host request-header field:
http host = host1
The following command defines a regex rule expression to match either of the following values in the HTTP
Host request-header field: host1, host23w01.
Host request-header field: host1, host23w01.
http host regex "host1|host23w01"