Skip to content
Tcl Source Code Artifact [c1c403cdb8]
Login

Artifact [c1c403cdb8]

Artifact c1c403cdb8ed5de25606f7484a3362e22cae438d:

Ticket change [c1c403cdb8] - Ticket [1115587fffffffff|1115587fff] <i>Regexp backreference fail with a * closure</i> status still Open with 7 other changes by tgl on 2015-09-19 16:01:47.
D 2015-09-19T16:01:47.365
J assignee aku
J closer nobody
J comment The\sdocumentation\shas\san\sexample:\r\n\r\n"([bc])\\1\smatches\sbb\sor\scc\sbut\snot\s`bc'".\sSo\sI\stried:\r\n\r\n%\sregexp\s{^([bc])\\1$}\sbb\r\n1\r\n%\sregexp\s{^([bc])\\1$}\scc\r\n1\r\n%\sregexp\s{^([bc])\\1$}\sbc\r\n0\r\n\r\nAll\swell\sand\sgood.\sBut\swhat\sif\swe\swant\sb*\sor\sc*\sbut\snot\r\n[bc]*\s(ie\sdisallow\sbbcb).\sThe\sobvious\ssolution\sis\s\\1*:\r\n\r\n%\sregexp\s{^([bc])\\1*$}\sbbb\r\n1\r\n%\sregexp\s{^([bc])\\1*$}\sbcb\r\n1\r\n\r\nbcb\sshould\snot\smatch!\r\n\r\nOddly,\susing\s\\1+\sworks\s(but\smeans\sof\scourse\sthat\s"b"\sor\r\n"c"\ssolo\sdoes\snot\smatch).\r\n\r\nJames
J icomment See\sticket\shttp://core.tcl.tk/tcl/tktview?name=0e0e150e49479e3f\sfor\sa\sproposed\ssolution.
J login tgl
J mimetype text/plain
J severity Minor
K 1115587fffffffffffffffffffffffffffffffff
U tgl
Z 0cb74cc0e6ffa7aa081f93fefac7830e