"Simon Strandgaard" <neoneye / adslhome.dk> schrieb im Newsbeitrag 
news:200410012022.59526.neoneye / adslhome.dk...
> 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", ""]

Darn!  You're right.  Unfortunately using "*" instead of "+" is not 
sufficient: far too many empty strings are found that way.

    robert