From: Harry Kakueki Date: 2007-06-02T11:19:42+09:00 Subject: Re: Getting the last N bytes of a string: On 6/1/07, Leonard Chin wrote: > On 6/1/07, Harry Kakueki wrote: > > str =~ /(.{1,10}$)/ > > This works nicely if you do this: > str[/(.{1,10}$)/] > > Though I guess it depends on what you consider "simple". > > Well, I guess the parentheses are not necessary. This looks a little less cluttered. str[/.{1,10}$/] Harry -- A Look into Japanese Ruby List in English http://www.kakueki.com/