TMcGov_92811
Mar 03, 2009Nimbostratus
case insensitivity in 4.x IRule
My 9.4 iRule is as such and works great:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] contains "myone/rf"} {
pool http-services.abc.com-zuma
}
else {
pool http-services.abc.com-unix
}
}
How do I update the 4.x iRule below to also be case sensitive ? It is a valid 4.x iRule without the case insensitivity....
if (http_uri matches_regex "CCCOne/RF") {
use pool services-zuma
}
else {
use pool services-unix
}