From: Marnen Laibow-Koser Date: 2009-10-31T00:12:01+09:00 Subject: Re: How do you get the tail end of a string? Bertram Scharpf wrote: > Hi, > > Am Freitag, 30. Okt 2009, 13:25:05 +0900 schrieb Michael W. Ryder: >>> You mean like string[-1]? >> >> I'm sorry, I missed the part about the index number of characters. Try >> string[-index, index]. > > That's really ugly. You shouldn't have to mention `index' twice. And you don't. string[-index..-1] does the trick. > I would even support a language extension to solve this problem. No need. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen@marnen.org -- Posted via http://www.ruby-forum.com/.