From: Julian Leviston Date: 2009-02-07T09:42:00+09:00 Subject: Re: regex \s == \n??? Sorry, forgot the " " argument Blog: http://random8.zenunit.com/ Learn rails: http://sensei.zenunit.com/ On 07/02/2009, at 7:45 AM, "David A. Black" wrote: > Hi -- > > On Sat, 7 Feb 2009, Siep Korteling wrote: > >> David A. Black wrote: >>> Hi -- >> >>> (squeeze defaults to " " as its argument, so you don't have to >>> provide >>> an argument unless it's something different.) >>> >>> >>> David >> >> Is that a 1.9.1 change? In 1.8.6 String#squeeze squeezes everything >> if >> no arguments are given. >> >> "abc aabbcc ".squeeze >> #=>"abc abc " > > Sorry, my mistake. It does squeeze everything. > > > David > > -- > David A. Black / Ruby Power and Light, LLC > Ruby/Rails consulting & training: http://www.rubypal.com > Coming in 2009: The Well-Grounded Rubyist (http://manning.com/black2) > > http://www.wishsight.com => Independent, social wishlist management! >