From: Christian Neukirchen Date: 2006-04-24T00:27:44+09:00 Subject: Re: [QUIZ] Text Munger (#76) simplistic solution. "A LeDonne" writes: > This solution makes no attempt to deal with non-ascii, AND counts > underscore as a word character. ... and niheter deos mine. # Now, taht was a nice, sorht quiz good for a qucik barek... I knew the # poerblm came up brfeoe, but I wrote my sotouiln berfoe loknoig at # http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/82166. STDIN.each { |line| puts line.gsub(/\B\w+\B/) { $&.split('').sort_by{rand} } } # Eojny. -- Christian Neukirchen http://chneukirchen.org