>>>>> "Randal" == Randal L Schwartz <[EMAIL PROTECTED]> writes: Randal> my @elements; Randal> push @elements, $1 while Randal> /\G\s*"((?:[^\\"]|\\"|\\\\)*)"/gc or Randal> /\G\s*'((?:[^\\']|\\'|\\\\)*)'/gc or Randal> /\G\s*([^\s'"]\S*)/gc; Randal> Leaving undefined something like \X as malformed. :) Which can be tested with die unless /\G\z/g; :-) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
- splitting strings with quoted white space Peter Cornelius
- Re: splitting strings with quoted white space Chas Owens
- 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 s... Jeff 'japhy' Pinyan
- Re: splitting strings with quoted whi... Randal L. Schwartz
- Re: splitting strings with quote... Jeff 'japhy' Pinyan
- Re: splitting strings with quoted white s... Ondrej Par
- Re: splitting strings with quoted whi... Randal L. Schwartz
- RE: splitting strings with quote... Randal L. Schwartz
- RE: splitting strings with quote... Accountant Bob
- RE: splitting strings with q... Jeff 'japhy' Pinyan
- Re: splitting strings wi... Ondrej Par
- Re: splitting strings wi... Jeff 'japhy' Pinyan
- RE: splitting strings wi... Accountant Bob
- RE: splitting strings wi... Jeff 'japhy' Pinyan
- Re: splitting strings with quoted white space M.W. Koskamp