Forum Discussion
Robert_47833
Altostratus
May 09, 2011confused by match_regx
Hi,can someone help?
when HTTP_REQUEST
{ default vars set in most iRules written by StubHub
set host [HTTP::host]
set uri [HTTP::path]
set subdomain1 "static"
set...
hoolio
Cirrostratus
May 09, 2011If you want the regex to match on a string starting with $subdomain1 or $subdomain2 I think you'd need to use parentheses around them or expliclity put the caret on both:
"^(?:$subdomain1|$subdomain2)\."
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