From: Bertram Scharpf Date: 2007-06-02T00:40:16+09:00 Subject: Re: Getting the last N bytes of a string: Hi, Am Freitag, 01. Jun 2007, 22:10:51 +0900 schrieb Leonard Chin: > On 6/1/07, Harry Kakueki wrote: > >str =~ /(.{1,10}$)/ > > This works nicely if you do this: > str[/(.{1,10}$)/] str[/(.{1,10}\z)/] is what the OP meant. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de