in reply to Not quite a simple split
Anyway, aside from that, my first though would be along these lines:
which, with the string@tokens = /(?:".*?"|\S)+/g;
produces, with each item of @tokens on a separate line:$_ = 'Here we have u"a quoted string" and a .';
Here we have u"a quoted string" and a .Looks fine to me.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Not quite a simple split
by John M. Dlugosz (Monsignor) on Feb 02, 2004 at 03:33 UTC |