From: Mark Thomas Date: 2009-02-07T03:24:20+09:00 Subject: Re: regex \s == \n??? On Feb 6, 9:37 am, Julian Leviston wrote: > Can't you use squeeze? Best idea yet. Might as well use a built-in, rather than reinventing one. a.squeeze(" ") Thanks for the reminder. I should review String#instance_methods every once in a while. There's some good stuff there.