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 {
...
kmtmt_51646
Nimbostratus
Nov 19, 2012Hi What Lies Beneath, Aaron,
Thank you for your reply and sample code!
/test/ can only be the first directory, and if it comes to second I'd like to ignore it like this:
>c) http://www.example.com/directory/test/index.html
so I believe I need to have "start_with" instead of having only "equals".
> if { [class match -- [string trimright [HTTP::path] "/" ] starts_with testgroup2]}{
hmmm...
I thought [HTTP::path] can have file name as well, so "d) http://www.example.com/testing/index.html" will be "/testing/index.html"
Please kindly tell me if I'm wrong.
Thank you very much!
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