On Dec 12, Pete Emerson said: >Jeff 'japhy' Pinyan wrote: > >> For the task of parsing quoted strings, my book suggests the inchworm >> method: >> >> push @terms, $1 while >> /\G\s*"([^"]*)"/g or >> /\G\s*(\S+)/g; > >Hmmm...mine seems to go into an infinite loop:
Oops. That'll teach me not to copy out of my book. ;) The regexes should have had /gc, not just /g. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for "Regular Expressions in Perl" published by Manning, in 2002 ** <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]