From: Lloyd Linklater Date: 2007-06-01T22:12:34+09:00 Subject: Re: Getting the last N bytes of a string: Brian Candler wrote: > What's the simplest way to get only the last 10 bytes of a string? Ok. Here is my first attempt at answering a coding question. /deep breath 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.reverse.slice(0..9).reverse -- Posted via http://www.ruby-forum.com/.