![]() |
|
P is for Practical | |
PerlMonks |
comment on |
( #3333=superdoc: 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 reply to Re^2: solution wanted for break-on-spaces (w/specifics)
by LanX
|
|