Yeah, greedy quantifiers bite again. :-(
my @list=$str=~/((?<=")[^"]*?(?=")|\S+)/g
Shouldn't that do the trick though? (BTW, im trying to get Perl installed on this box.. I may update once I do)
First they ignore you, then they laugh at you, then they fight you, then you win.
-- Gandhi
In reply to Re: Re: Re: Re: Re: In need of a stupid regex trick
by demerphq
in thread In need of a stupid regex trick
by 87C751
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |