From: botp Date: 2010-11-04T11:18:23+09:00 Subject: Re: UTF-8 aware chop for 1.8? On Thu, Nov 4, 2010 at 1:25 AM, Ammar Ali wrote: > On Wed, Nov 3, 2010 at 7:00 PM, James Edward Gray II >> last = s[/.\z/mu] || '' > I updated the gist accordingly: >  https://gist.github.com/661257 can we make that a one pass? str =~ /.\z/mu [$`,$&] best regards -botp