From: Ammar Ali Date: 2010-11-04T23:53:23+09:00 Subject: Re: UTF-8 aware chop for 1.8? On Thu, Nov 4, 2010 at 4:37 PM, Brian Candler wrote: > 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" James clarified this earlier. But thanks for chiming in nonetheless. Cheers, Ammar