From: Robert Klemme Date: 2010-10-20T17:35:49+09:00 Subject: Re: Separator in $PATH On Wed, Oct 20, 2010 at 9:20 AM, GianFranco Bozzetti wrote: > string#split accept a regular expression > > path_list = ENV['PATH'].split(/[:;]/) # work s on Linus and Windows > > HTH gfb Well, it works. But it isn't helpful. irb(main):002:0> 'C:\\foo;W::\\bar'.split(/[:;]/) => ["C", "\\foo", "W", "", "\\bar"] Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/