Forum Discussion
kmtmt_51646
Nimbostratus
Nov 18, 2012How to extra strings inside "class match"
Hi Dev members,
Let me ask about "class match" function.
Here's my Data Group:
============
ltm data-group internal /Common/testgroup1 {
records {
...
hoolio
Cirrostratus
Nov 18, 2012Hi kmtmt,
You could combine the data group so that you'd have /test and /test/ in one data group. Another option would be to remove any trailing forward slashes before you do the class lookup against one data group without the trailing forward slashes:
if { [class match -- [string trimright [HTTP::uri] "/"] equals testgroup1] }{
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