From: Brian Candler Date: 2010-11-04T23:37:07+09:00 Subject: Re: UTF-8 aware chop for 1.8? Ammar Ali wrote in post #959047: > By the way, the m options seems superfluous in James' version. I get > the same results without it. >> foo = "abc\n" => "abc\n" >> foo.sub(/.\z/mu, '') => "abc" >> foo.sub(/.\z/u, '') => "abc\n" -- Posted via http://www.ruby-forum.com/.