Forum Discussion
hooleylist
Nov 22, 2011Cirrostratus
Hi Jucao,
(?i) sets case insensitive for the rest of the match:
http://www.regular-expressions.info/tcl.html
If you want to check the query string for a parameter of gsec being set to content, you could use URI::query:
if {[string tolower [URI::query [HTTP::uri] gsec]] eq "content"}{
In general, string operations will be 5-10 times more efficient than regexes.
Aaron