Forum Discussion
Puli
Apr 15, 2011Nimbostratus
matching 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.
5 Replies
Sort By
- Hi Puli,
- thanks aaron,
- Small problem facing with the match.
- Can you provide a few more examples of URIs you do want to match a few that you don't?
- Hi 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