From: Robert Klemme Date: 2003-11-17T10:40:17+09:00 Subject: Re: substring: to the end of the string "KONTRA Gergely" schrieb im Newsbeitrag news:20031114154849.GA12384@mlabdial.hit.bme.hu... > Hi! > > Is there any easiest way to get the substring starting from the 3rd > character? > > my solution: > str[3..-1] which seems quite odd :-/ > > What if, intuitive, we can write > str[3..]? > > Any smarter solution? Not as far as I know. You can do str[3,str.length-3] but this isn't really an improvement unless you value the absence of negative integers in this expression. :-) robert