Forum Discussion
DM_5174
Nimbostratus
Jul 09, 2007<b>Better way to code iRule in 4.5.x code ???</b>
Hi all,
I have version 4.5x code and would like to know if there is any efficient way to
consolidate the code below. I tired to use tolower or class but got an error message. I believe ...
Deb_Allen_18
Jul 09, 2007Historic F5 Account
I just saw your earlier post, and since it looks like you need to switch just of the beginning of the path, you can simplify just a bit, eliminating the leading wildcard to save the regex engine some work:
if ( tolower(http_uri) matches_regex "(/)(site1|site2|site3|site4|site5|site6|site7)(.*))" ) {
use pool APACHE_POOL
}
else {
use pool IISWEB_POOL
}/d
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