![]() |
|
"be consistent" | |
PerlMonks |
Re^2: solution wanted for break-on-spaces (w/specifics)by LanX (Saint) |
on Oct 24, 2021 at 00:30 UTC ( #11137931=note: print w/replies, xml ) | Need Help?? |
I'm not sure about this (?:(?<!\\)\") I read it as doublequote which is not preceded by backslash But what about an escaped backslash \\" or two \\\\" ... ? I'd rather try something like (Untested pseudocode) s/^(?:$escaped|$quoted|\S)*\K\s+/\n/g and
NB: I didn't cover the case of unclosed quotes, which is unclear anyway.
Cheers Rolf
updatetested - fails - good night! :)
updatesee Re: solution wanted for break-on-spaces (w/specifics) for "working" example
In Section
Seekers of Perl Wisdom
|
|