Forum Discussion
Ben_Wilson_2412
Jul 17, 2007Cirrus
iRules operator starts_with case sensitivity?
I think the subject says it all.
Is the starts_with operator case aware? Is there an easy way to just lower case the whole string?
Thanks!
hooleylist
Jul 17, 2007Cirrostratus
You can use the 'string tolower' function to set a string to lowercase before you perform the starts_with comparison. Here is an example:
if { [string tolower [HTTP::path]] starts_with "/directory" ]}{
You can check the TCL manual for details:
http://tmml.sourceforge.net/doc/tcl/string.htmlClick here
Aaron
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