On Wednesday 06 June 2001 22:59, Jeff 'japhy' Pinyan wrote:
> On Jun 6, Accountant Bob said:
> >How about this: (the same but "unrolled")
> >
> >my @elements;
> >push @elements, $1 while
> >   /\G\s*"([^\\"]*(?:\\["\\][^\\"]*)*)"/gc or

I think that 
        /\G\s*"((?:(?:\\.)|[^\\])*?)"/gc

is shorter and also matches all \X sequences (the trick is that \\. is longer 
than [^\\]

-- 
Ondrej Par
Internet Securities
Software Engineer
e-mail: [EMAIL PROTECTED]
Phone: +420 2 222 543 45 ext. 112

Reply via email to