in reply to In need of a stupid regex trick
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: In need of a stupid regex trick
by CountZero (Bishop) on Jan 04, 2004 at 21:50 UTC | |
|
Re: Re: In need of a stupid regex trick
by CountZero (Bishop) on Jan 04, 2004 at 21:36 UTC | |
by bart (Canon) on Jan 04, 2004 at 21:51 UTC | |
by CountZero (Bishop) on Jan 04, 2004 at 21:56 UTC | |
by demerphq (Chancellor) on Jan 05, 2004 at 03:22 UTC | |
by CountZero (Bishop) on Jan 05, 2004 at 13:54 UTC | |
by demerphq (Chancellor) on Jan 05, 2004 at 21:33 UTC | |
by CountZero (Bishop) on Jan 05, 2004 at 22:17 UTC | |
|