From: Robert Dober Date: 2007-06-29T03:09:10+09:00 Subject: Re: splitting a string On 6/28/07, Lars Andren wrote: > Thanks a lot both of you! I can use Stefanos method since I only want to > use the part of the string before the third occurrence. > Lars In that case you can do str.split("/")[0..2].join("/") Cheers Robert -- I always knew that one day Smalltalk would replace Java. I just didn't know it would be called Ruby -- Kent Back