Forum Discussion
jay_41157
Nimbostratus
Dec 17, 2008double wildcard match for uri patterns
Hi,
Is it possible to use 2 wildcards when checking for a uri ?
For ex,
I want to look for
uri1abcURI2zzz
uri1xxxURI2wqq
...
hoolio
Cirrostratus
Dec 17, 2008Hi Jay,
You can use string match with multiple wildcards:
string match -nocase "*pattern*" "some string"
Or you could use the -glob flag for switch:
switch -glob [string tolower [HTTP::uri]] {
"uri1*xxxURI2*" {
...
Either string-based option would be more efficient than a regex.
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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