From: Chris Causer Date: 2008-10-22T07:18:13+09:00 Subject: Re: Stripping characters off a string ------=_Part_16964_24467341.1224627577103 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Tue, Oct 21, 2008 at 8:11 PM, Marc Heiler wrote: > your_string = "abcdef" # => "abcdef" > your_string[-4,4] = '' # => "" > your_string # => "ab" Does that really work Marc? I always thought that 'string'[a,b] was to take a substring beginning at a of length b. In your case, you'd just get the last 4 characters 'cdef'. ------=_Part_16964_24467341.1224627577103--