From: Leo Date: 2009-03-05T14:53:29+09:00 Subject: Re: Cut a string each 80 character > string.scan(%r{.{1,80}}).map { |_chunk| >   _chunk + '
' > } Isn't that pretty much the same as: string.gsub(%r{.{1,80}}, "\\0
") leo.