From: 7stud -- Date: 2009-07-20T12:23:31+09:00 Subject: Re: How to strip inner whitespace in rails 7stud -- wrote: > > split() rules the world. squeeze()...not so much. > ...but if you are a regex addict, then gsub() is your fix: result = s.gsub(/\s+/) do |match| " " end -- Posted via http://www.ruby-forum.com/.