Forum Discussion
jay_41157
Nimbostratus
17 years agodouble 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
17 years agoHi 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
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