Forum Discussion
Michael_Mau_108
Nimbostratus
Feb 16, 2008REGEXP parsing URI
Hello all,
I have a customer who assigns each of his 100+ users with a service name, so he is able to indentify who each customer group is, and what environment they are trying to access (accepta...
Feb 17, 2008
Don't forget the "-glob" argument to switch to enable the "file-globbing" matching.
switch -glob [HTTP::uri] {
"XML_[A-Z]*_P" {
do something
}
"XML_[A-Z]*_T" {
do something
}
default {
do something else
}
}
If you want to combine the first two cases, you could use either
switch -glob [HTTP::uri] {
"XML_[A-Z]*_[PT]" {
do something
}
default {
do something else
}
}
or
switch -glob [HTTP::uri] {
"XML_[A-Z]*_P" -
"XML_[A-Z]*_T" {
do something
}
default {
do something else
}
}
-Joe
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