Forum Discussion
Raj_74912
Nimbostratus
Jun 01, 2010Greedy iRule. Need not so greedy one.
Guys and Gals,
I currently have a problem that I am trying to solve. I have a website called www.abc.com and want all requests only going to www.abc.com// to go to a different pool than no...
hoolio
Cirrostratus
Jun 02, 2010You could do this with two string functions instead of a regex for better effciency:
[HTTP::uri] starts_with "/" && [HTTP::uri] ends_with "/"
For information only, you could use a regex like this to match / or /anything/:
^(?:/.*/|/)$
tests:
% regexp {^(?:/.*/|/)$} /test/123/
1
% regexp {^(?:/.*/|/)$} /
1
% regexp {^(?:/.*/|/)$} /test/123
0
%
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