in reply to Re: In need of a stupid regex trick
in thread In need of a stupid regex trick
my $str='one "two three" four five "six seven eight" nine'; my @list=grep defined, $str=~/"([^"]*)"|(\S+)/g; print join "\n", @list;
CountZero
"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
|
|---|