Forum Discussion
AlexDeMarco
Dec 28, 2018Nimbostratus
Case Insentive class matching?
I have a data group with mixed case entries: /MyWebService/ /MyOtherWebService/
When a user enters I want to be able to match it against the datagroup no matter what the case is. class match does not have a nocase function. Any ideas? or suggestions? Thank you! in advance...
- RicoCirrus
Alex,
Have you considered using 'string tolower' and changing the data group entries to lowercase? By just reading the URI as a lowercase word, you should be able to match properly regardless of case.
when HTTP_REQUEST { if { class match [string tolower [HTTP::uri]] eq some_class } { Do something } }
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