Skip to content
Tcl Source Code Artifact [563771520a]
Login

Artifact [563771520a]

Artifact 563771520af3f31c5ff746bc99afe9dc6902ed23:

Ticket change [563771520a] - New ticket [5ea71fdcd3291c38|5ea71fdcd3] <i>Regexp fails to enforce LACON restrictions inside nested parentheses</i>. by tgl on 2015-11-07 18:31:03.
D 2015-11-07T18:31:03.109
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment Per\sthe\smanual,\sbackrefs\sare\snot\sallowed\sinside\slookahead\sconstraints,\sand\sall\sparentheses\stherein\sare\sconsidered\snon-capturing.\s\sBut\sthe\sregexp\sparser\sforgets\sthese\srestrictions\swhen\sit\srecurses\sto\senter\sa\sparenthesized\ssubexpression\sinside\sa\sLACON.\s\sSo\swe\sget\ssilliness\slike\sthis\s(tested\swith\s8.6.4):\r\n\r\n%\sregexp\s-inline\s{x(\\w)(?=(\\1))}\s{xyz}\r\nxy\sy\r\n%\sregexp\s-inline\s{x(?=((foo)))}\s{xfoobar}\r\nx\s{}\r\n\r\nFix\sis\sa\sone-liner,\ssee\sattached\spatch,\swhich\sis\sa\sTcl-ified\sversion\sof\r\nhttp://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=a43b4ab1111ca5e5f40a2ddd8e56bf999b9fdad9
J foundin 8.6.4
J is_private 0
J login tgl
J priority 5\sMedium
J private_contact 26864b65f1c6ce8bda86f87ed9c554e19ac0390d
J resolution None
J severity Minor
J status Open
J submitter tgl
J subsystem 43.\sRegexp
J title Regexp\sfails\sto\senforce\sLACON\srestrictions\sinside\snested\sparentheses
J type Bug
K 5ea71fdcd3291c38dff80d6ccdaf30f4969316e4
U tgl
Z 64bdbdc34d9ef20e7dbc466ac9129ad7