Forum Discussion
pwallace_110041
Nimbostratus
Jan 25, 2006Double check of rule to get rid of regex.
I am in need of a rule review. I am trying to come up with an alternative to the rule below with matches_regex in it. I need it to have the same end result but I am trying to avoid using the regex d...
Martin_Machacek
Feb 17, 2006Historic F5 Account
Answer 1 (Why would the following be true?):
Because of the "http_uri ends_with one of map_uri" condition in the suggested rule.
Answer 2: (are http_uri matches case sensitive?)
Yes, all string matches in iRules are case sensitive. You'd need to use the "tolower" function to convert the URI to all lowercase and compare it to all lowercase string if capitalization in your URIs may vary and you want to match all alternatives. The condition in your rule may look like this:
http_uri starts_with "/locmap/" and tolower(http_uri) ends_with one of map_uriand the map_uri class would need to contain only lowercase versions of the map related URIs.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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