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
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.