Puli
Nimbostratus
Apr 15, 2011matching numbers patter in a url
I need to match below patter in a url and re-direct traffic.
http://www.abc.com/temp/2011/12/temp.html
Am using below code
if { [string match {*/*[0-9]*/*[0-9]*/* } [HTTP::uri] } {
user pool pool1
}
when run config sync to peer, i get an error saying invalid argument.
if i escape the special characters like
{\*\/\*[0-9]\*\/\*[0-9]\*\/\*} config sync run sucessfully but the url patter does not match.
Any ideas , am ok not using string match if there's a better alternative.
thanks.