From: Wes Gamble Date: 2006-08-04T05:49:18+09:00 Subject: Re: Using gsub to remove embedded newlines in HTML file Thanks. That is the _Ruby_ way to do it, and that's what I wanted to know :). I've used blocks with gsub but I keep forgetting that I can put anything in there - so far I've only used backrefs to pull out pieces of the matching regex to rearrange things. Wes -- Posted via http://www.ruby-forum.com/.