Forum Discussion
Scott_Larson
Nimbostratus
Aug 17, 2007Regexp to scrub http response data payload
I'm trying to write an iRule with a regexp that will scour outgoing HTTP payloads and replace http with https and remove any port (and the colon preceeding the port number) - that is, scrub all outgoi...
Scott_Larson
Nimbostratus
Aug 17, 2007ha, I just found my own answer, thanks to the SSN scrubbing example. I'll use \d to denote a number rather than [0-9]. My new regexp is:
set find "http(s)*(://www.example.com)(\d)+)*"(the frowny face above should be replaced with a colon ":" followed by a open paren "(" ... silly auto-substituting emoticons...)
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
