On Friday 01 October 2004 09:45, Robert Klemme wrote:
[snip]
> >> s = "aa;bbb\\;;abc;;d\\\\;e;"
> => "aa;bbb\\;;abc;;d\\\\;e;"
> >> s.scan /(?:\\.|[^\\;])+/
> => ["aa", "bbb\\;", "abc", "d\\\\", "e"]


If its a csv file.. shouldn't output then be?

["aa", "bbb\\;", "abc", "", "d\\\\", "e", ""]

--
Simon Strandgaard