Forum Discussion

Mack_Hanson_107's avatar
Mack_Hanson_107
Icon for Nimbostratus rankNimbostratus
Jan 18, 2008

Remove Newlines in HTTP

I'd like to remove all the blank lines in outgoing HTML content. Using the HTMLCommentScrubber

http://devcentral.f5.com/wiki/default.aspx/iRules/HtmlCommentScrubber.html

Click here

as a starting point, I modified the regex this way:

set indices [regexp -all -inline -indices {^\n$} [HTTP::payload]]

But it is not removing the blank lines. What could I do differently?

Also I am looking for a way to just capture and evaluate each line that terminates with a newline. I should think {^.*$} would do it, but that is not working either.
No RepliesBe the first to reply