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...
Lee_Orrick_5554
Dec 14, 2005Historic F5 Account
Just for clarity.
Note the difference between:
if { [string first -nocase [HTTP::uri] "foo"] } {...}
which should really be:
if { [string first -nocase "foo" [HTTP::uri] ] } {...}
From TCL manual:
string first string1 string2 ?startIndex?
Search string2 for a sequence of characters that exactly match the characters in string1. If found, return the index of the first character in the first such match within string2. If not found, return -1. If startIndex is specified (in any of the forms accepted by the index method), then the search is constrained to start with the character in string2 specified by the index.
I am just trying to avoid some potential confusion for future readers of this thread.
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
