Forum Discussion
Mack_Hanson_107
Nimbostratus
Jan 18, 2008Remove 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 hereas 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
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
