swzoh wrote:
> BTW, I'm not sure why the following two output different results:
> 
> esc(?"\r\nGoodbye\r\n\r\n",?"\").replaceg(?"(?m)^\R", ?"Hello\0") 
> esc(?"\r\nGoodbye\r\n\r\n",?"\").replaceg(?"(?m)(?<=^)\R",
> ?"Hello\0")

I assume you're using the "any" PCRE build. In that case, I suppose one
of your expressions matches \n while the other doesn't in "Goodbye\r\n".
You'd have to do more testing to find out why but this is probably a
PCRE issue. I don't know what the expected result would be... maybe you
found a bug so that may be worth investigating (to minimize plugin
interference, don't use the global services).

Reply via email to