in reply to Re: Re: Re: Re: In need of a stupid regex trick
in thread In need of a stupid regex trick
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Re: In need of a stupid regex trick
by CountZero (Bishop) on Jan 05, 2004 at 22:17 UTC | |
by demerphq (Chancellor) on Jan 09, 2004 at 03:12 UTC |