<i>Regexp fails to enforce LACON restrictions inside nested parentheses</i> status still Open with 4 other changes
by
.
D 2026-10-11T08:04:06.763
J foundin 8.6.18,\s9.0.5,\s9.1.0
J icomment Still\sthe\ssame\sin\s8.6,\s9.0\sand\s9.1.\n\nProposed\sfix\sin\sbranch\s[/timeline?r=regexp-lacon-nested-parens|regexp-lacon-nested-parens]:\syour\spatch.\sBoth\sexamples\snow\sbehave\sas\sin\sPostgreSQL:\sthe\sfirst\sone\sgives\s"invalid\sbackreference\snumber",\sthe\ssecond\sone\smatches\s<tt>x</tt>\swithout\ssubmatches.\sTests\sreg-6.21\sto\s6.24.\n\n<b>This\sis\sa\sbreaking\schange.</b>\sParentheses\snested\sin\sa\slookahead\sconstraint\sno\slonger\scount\sas\scapturing,\sso\sthe\sfollowing\ssubexpressions\sare\srenumbered,\sand\sREs\swith\sa\sbackref\sinside\sa\slookahead\sconstraint\sno\slonger\scompile.\sBoth\sare\swhat\sre_syntax.n\shas\salways\sdocumented,\sbut\sexisting\scode\smay\srely\son\sthe\sold\sbehaviour.\sCode\sthat\sused\snon-capturing\sgroups\s<tt>(?:...)</tt>\sinside\slookahead\sconstraints,\sthe\sworkaround\sfor\sthis\sbug,\sis\snot\saffected.
J login serhiy.storchaka
J mimetype text/x-fossil-wiki
K 5ea71fdcd3291c38dff80d6ccdaf30f4969316e4
U serhiy.storchaka
Z c732ce4e4190c05a8fbe0dba68a2cdcc