Forum Discussion
Nicolas_Bellen1
Jun 03, 2011Nimbostratus
REGEX Alternatives
I've been trying to figure out how i'd structure a particular portion of my iRule to look for values contained in a string, instead of a regular expression but i'm having some difficulty:
Th...
Nicolas_Bellen1
Jun 03, 2011Nimbostratus
Aaron,
That worked beautifully! I have one more question regarding REGEX alternatives as it relates to the iRule i'm working on.
Is there a more efficient method to do the following, versus the REGEX i'm currently using?
when HTTP_RESPONSE_DATA {
Check for the FQDN of domain oasis.local in the payload
regexp {GMVM(\d)+\.oasis\.local} [HTTP::payload] found
if {$found != -1 } {
Insert a new cookie with the old host IP name and old cookie's value
HTTP::cookie insert name "DRCShared_IP" value $found domain "example.com" path "/"
Replace embedded URL to Oasis Host with URL to VIP of abc.example.com
STREAM::expression {@GMVM(\d)+\.oasis\.local@abc.example.com@}
STREAM::enable
}
}
I'm having a bit of difficulty wrapping my head around when i can use regular expression rules to match on items using strings instead.
Nick
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