Forum Discussion
Gortguy_105156
Nimbostratus
Aug 31, 2011Strange issue with "matches_regex" and case sensitivity
I'm a relative newbie to iRules, so please don't laugh if this is too simplistic.
I also have two environments, call them primary and test. I use essentially the same rule (copy/paste) for t...
Michael_Yates
Nimbostratus
Aug 31, 2011There is a good write-up that covers case-sensitivity in the URL here: http://www.w3.org/TR/WD-html40-970708/htmlweb.html
As a general rule of thumb you should always do your compare with your data in a "known" state, so doing a string tolower will always help and make sure that the compare works.
If you change this line to this, it should resolve your problem:
if {[string tolower [HTTP::uri]] matches_regex "/myuristring" } {
What operating systems do each over your environments run on? I ask because for the most part IIS hosted Websites are case insensitive, but UNIX hosted applications are case sensitive.
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
