From: Bob Hutchison Date: 2007-06-13T23:20:49+09:00 Subject: Re: Getting the last N bytes of a string: On 13-Jun-07, at 10:15 AM, bbiker wrote: > irb(main):001:0> str = "now is the" > => "now is the" > irb(main):002:0> str[-10..-1] > => "now is the" > > So I really see no need for a special method to obtain the last x > bytes of a string. str[-100..-1] => nil Cheers, Bob ---- Bob Hutchison -- tumblelog at Recursive Design Inc. -- weblog at -- works at