From: "Bartosz DziewoƄski" Date: 2012-08-05T00:31:21+09:00 Subject: Re: Stacking gsub! commands? 2012/8/4 : > > It should work (without typo): > > 1.9.3p194 :001 > ''.gsub!(/>/, '<').gsub!(/ => ">test<" Nope. irb(main):001:0> 'test'.gsub!(/>/, '<').gsub!(/' #gsub! (with bang) modifies the receiver and returns nil if no changes were made. #gsub (without bang) always returns a new string. -- Matma Rex