.
D 2005-02-04T09:27:58
J assignee pvgoran
J cmimetype text/plain
J comment The\sdocumentation\shas\san\sexample:\n\n"([bc])\\1\smatches\sbb\sor\scc\sbut\snot\s`bc'".\sSo\sI\stried:\n\n%\sregexp\s{^([bc])\\1$}\sbb\n1\n%\sregexp\s{^([bc])\\1$}\scc\n1\n%\sregexp\s{^([bc])\\1$}\sbc\n0\n\nAll\swell\sand\sgood.\sBut\swhat\sif\swe\swant\sb*\sor\sc*\sbut\snot\n[bc]*\s(ie\sdisallow\sbbcb).\sThe\sobvious\ssolution\sis\s\\1*:\n\n%\sregexp\s{^([bc])\\1*$}\sbbb\n1\n%\sregexp\s{^([bc])\\1*$}\sbcb\n1\n\nbcb\sshould\snot\smatch!\n\nOddly,\susing\s\\1+\sworks\s(but\smeans\sof\scourse\sthat\s"b"\sor\n"c"\ssolo\sdoes\snot\smatch).\n\nJames
J foundin obsolete:\s8.4.9
J priority 5\sMedium
J resolution None
J status Open
J submitter jkbonfield
J subsystem 43.\sRegexp
J title Regexp\sbackreference\sfail\swith\sa\s*\sclosure
J type Bug
K 1116050fffffffffffffffffffffffffffffffff
U jkbonfield
Z 6733922025049a036c54b7e93bb1b3b1