Forum Discussion
Nicholas_Zurfl1
Nimbostratus
Nov 03, 2005How to ignore case
Greetings,
I am a frequent lurker of the devcentral forums.
Does anyone know of a way to parse a payload and ignore case? My challange is that I am dealing with a proprietary protocol a...
unRuleY_95363
Nov 03, 2005Historic F5 Account
Ugh, try not to use regular expressions. They are a performance monster.
You can also use the "-nocase" option to several of the string commands (like: string compare). We've also added support for this option to "string first" which is not documented on the Tcl site.
For example:
if { [string first -nocase "foo" [HTTP::uri]] } {...}This finds the first occurance of "foo" regardless of case in the uri.
The advantage of using the -nocase option is that a copy of the string is not made, thus making it perform faster.
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
