[pcre-dev] [Bug 2792] \K should not be allowed in lookaround…

Góra strony
Delete this message
Autor: admin
Data:  
Dla: pcre-dev
Temat: [pcre-dev] [Bug 2792] \K should not be allowed in lookarounds
https://bugs.exim.org/show_bug.cgi?id=2792

--- Comment #2 from firas <firas.dib@???> ---
Thanks for the reply.

I stumbled upon this due to the following regex by a user:
https://regex101.com/r/7PPxPD/1/

This results in an infinite loop, even in other implementations such as PHP:
https://3v4l.org/F4NhG

It also produces some errors (-60) when used in substitution mode in PCRE2.

I understand your reasoning, and think either is fine. I will probably proceed
with producing an error on regex101 when \K is placed in a lookaround, to avoid
some of these edge cases.

--
You are receiving this mail because:
You are on the CC list for the bug.