in reply to Re: Re: split on spaces, except those within quotes?
in thread split on spaces, except those within quotes?
I assume you're referring to this:
s/(('|").*?\2)/ ($£ = $1) =~ s!\s+!\cA!g; $£ /ge; #!"
That isn't re-entrant. The right side of a substitution counts as a string (which in this case, is eval'ed because of the /e,); only the right side counts as a regex.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: split on spaces, except those within quotes?
by diotalevi (Canon) on Nov 12, 2002 at 04:49 UTC |