Forum Discussion
CraigM_17826
Altocumulus
Aug 02, 2011non case senitive match in http class
Hi,
I currently use http classses to do redirects which used to be done in iRules. At the moment for the URI Path I use pattern strings and this has worked fine, however these are case sensa...
Kevin_Davies_40
Nacreous
Aug 02, 2011Put (?i) in front of your regular expression. This will make it case insensitive. The period and star at the end are representative of any character "." that is repeated 0 or more times "*". Be mindful to choose regex when adding these. Too many times I have added a regex as a pattern and wondered why it was not working.
eg.
(?i)^/hellothere.*
Will match ...
/heLLoTherehowareyou
/hellotherehowareyou
/HELLOTHERE
/HelLothereHOWAREYOU
Jarvil
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