From: Lloyd Linklater Date: 2007-12-19T11:18:04+09:00 Subject: Re: string question Bulhac Mihai wrote: > i have this string: > try_dir="program files/tbla/bla1" > > how can i slice it in string1=program files" string2="tbla" > string3="bla1" ar = Array.new ar = "program files/tbla/bla1".split("/") p ar => ["program files", "tbla", "bla1"] -- Posted via http://www.ruby-forum.com/.