Subject: Re: Getting the last N bytes of a string:
From: "Leonard Chin" <l.g.chin gmail.com>
Date: Fri, 1 Jun 2007 22:10:51 +0900
References: 253828253836
In-reply-to: 253836
On 6/1/07, Harry Kakueki <list.push / gmail.com> wrote:
> str =~ /(.{1,10}$)/
This works nicely if you do this:
str[/(.{1,10}$)/]
Though I guess it depends on what you consider "simple".