From: Love U Ruby Date: 2013-04-27T19:45:14+09:00 Subject: Re: confusion with String#squeeze Hans Mackowiak wrote in post #1107021: > you need to understand the difference between '\n' and "\n" Yes, for while I forgot the difference between '' and "". Thanks for pointing me there. string = "adb\n\n \n\nbbb" p string.squeeze("\n") #=> "adb\n \nbbb" -- Posted via http://www.ruby-forum.com/.