Hi

I'm trying to split a path (like an URL, but not one) into bits on the 
'/' character.
Problem is, I want to be able to be able to escape '/' in the names of 
bits by doubling
the character to '//' eg

'foo/bar // baz/qux'
=> ["foo", "bar / baz", "qux"]

In a perlish regex I could use zero-width assertions either side thus
string.split(/(?<!\/)\/(?!\/)/)

but there's no lookbehind in Ruby - I wonder if someone could suggest a neat
ruby alternative.

thanks
alex