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
- Re: splitting strings with quoted white space Ondrej Par
- Re: splitting strings with quoted white space Randal L. Schwartz
- Re: splitting strings with quoted white space Jeff 'japhy' Pinyan
- Re: splitting strings with quoted white s... Randal L. Schwartz
- Re: splitting strings with quoted whi... Jeff 'japhy' Pinyan
- Re: splitting strings with quoted white space Ondrej Par
- Re: splitting strings with quoted white s... Randal L. Schwartz
- Re: splitting strings with quoted whi... Randal L. Schwartz
- RE: splitting strings with quoted whi... Accountant Bob
- RE: splitting strings with quote... Jeff 'japhy' Pinyan
- Re: splitting strings with q... Ondrej Par
- Re: splitting strings with q... Jeff 'japhy' Pinyan
- RE: splitting strings with q... Accountant Bob
- RE: splitting strings with q... Jeff 'japhy' Pinyan
- Re: splitting strings with quoted white space M.W. Koskamp
