in reply to Re: Re: In need of a stupid regex trick
in thread In need of a stupid regex trick

my @list = grep defined, $str=~/"([^"]*)"|(\S+)/g;

Replies are listed 'Best First'.
Re: Re: Re: Re: In need of a stupid regex trick
by CountZero (Bishop) on Jan 04, 2004 at 21:56 UTC
    Great minds think alike (beat you by one minute)

    CountZero

    "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law