Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
It seems the \\., which captures the \" in the target, is not possessive, and is causing the error.
The following works in the given case. Are there cases where it fails?
Update: Playing around more, it seems that the possessives are not needed on the internals, but only that the \\. should have a quantifier: This works on a string of length 100 million, in <2s on my machine. (I didn't try any longer strings.) -QM In reply to Re: What regex can match arbitrary-length quoted string?
by QM
|
|