Something like
my @list=$str=~/("[^"]*"|\S+)/g
will do, but it doesnt handle escaping, and alas im on a box without perl installed so i havent tested it.
First they ignore you, then they laugh at you, then they fight you, then you win.
-- Gandhi
In reply to Re: In need of a stupid regex trick
by demerphq
in thread In need of a stupid regex trick
by 87C751
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |