Forum Discussion
Mike_S_64601
Nimbostratus
Apr 11, 2007Problem using regexp - syntax error on [
First time attempting to use a regexp in an irule; running into a syntax error in this script:
when HTTP_REQUEST {
if { [HTTP::uri] matches_regex "^\/[a-zA-Z][a-zA-Z]\/" } {
...
Apr 11, 2007
TCL uses brackets to denote procedure execution. You'll need to escape the brackets.
when HTTP_REQUEST {
if { [HTTP::uri] matches_regex "^\/\[a-zA-Z\]\[a-zA-Z\]\/" } {
pool pool1
} else {
pool pool2
}
}
-Joe
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects