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...
hooleylist
Jun 03, 2011Cirrostratus
Hi Nick,
The only option I can think of is if there are a static number of digits after the GMVM string. If so, you could potentially use string match to check for a match and then parse the hostname. However, I'm not sure that's going to be very elegant compared with the regexp command.
Once you get that version of the iRule working, you could consider testing a version which uses regsub from HTTP_RESPONSE_DATA to replace the internal hostname with the external one. It might be simpler than using a payload collect and a stream expression.
Aaron
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