Scott_Larson
Aug 17, 2007Nimbostratus
Regexp 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 outgoing urls (like http://www.example.com:8080/) and replace them with https://www.example.com/.
I've got this so far:
set find "http(s)*(://www.example.com)(:[0-9]+)*"
but when I try to save my iRule, I get:
[undefined procedure: 0-9] [0-9]
Can anyone help me please?