mikand_61525
Feb 17, 2012Nimbostratus
Replace (and remove) characters from URIs?
Im trying to setup an irule that will convert "\" into "/" and also remove redundant "/" (turning "//" into "/") for HTTP::uri.
What is the recommended way (performance wise) to do these two things in v10 and v11 nowadays?
I also wonder how I can efficiently search for a group of specific hexvalues?
I understand one can use:
if { [string match {*abc*} $uri] }
to search for "abc" withing a string but im not sure that the following will work:
if { [string match {\x00 || \x01} $uri }
or am I supposed to to make a large if-statement out of this or can datagroup list be used aswell?