Forum Discussion
Mikoto_Misaka_1
Nimbostratus
Feb 28, 2006the capital letter and the small letter
Hello,
I think that the operator "contains" distingushes the capital letter and the small letter.
Could you please tell me how to simply write iRule without distingushing the capital le...
Deb_Allen_18
Feb 28, 2006Historic F5 Account
Your second example should actually work, although you'll probably want to add the /'s back in to avoid unintentional matches:
if { [HTTP::uri] contains "/[Uu][Pp]/" }
For longer strings, it's easier to convert the uri to one consistent case for comparison instead:
if { [string tolower [HTTP::uri]] contains "/up/" }
HTH
/deb
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