Forum Discussion
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]*/* } [HTT...
hoolio
Cirrostratus
Apr 15, 2011Hi Puli,
Can you try this:
if { [string match "*/*\[0-9\]*/*\[0-9\]*/*" [HTTP::uri] } {
Only the square braces should need to be escaped if you wrap the pattern in double quotes instead of curly braces.
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