Oops. (still untested...)
my @list=$str=~/((?<=")[^"]*(?=")|\S+)/g
First they ignore you, then they laugh at you, then they fight you, then you win.
-- Gandhi
In reply to 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: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |