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/.