.
D 2000-10-26T00:52:38
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1446\sBug\nVersion:\s8.0.4\nSubmitDate:\s'1999-03-04'\nLastModified:\s'1999-07-02'\nSeverity:\sLOW\nStatus:\sClosed\nSubmitter:\spat\nChangedBy:\sstanton\nOS:\sWindows\sNT\nOSVersion:\s4.0\nMachine:\sX86\nFixedDate:\s'2000-10-25'\nClosedDate:\s'1999-07-02'\n\n\nName:\nvince\sdarley\n\nExtensions:\nnone\n\nReproducibleScript:\n%\sregexp\s{abc([a-zA-Z]+)abc}\s"abcblahblahabc"\s""\smiddle\n1\n%\sset\s""\nabcblahblahabc\n\nObservedBehavior:\nMy\sunderstanding\swas\sthat\s""\scan\sbe\sused\sto\stell\sregexp\syou\sdon't\scare\sabout\sa\sgiven\ssubMatchVar,\sbut\sit\sappears\sas\sif\sregexp\sinstead\ssets\sthe\svariable\swith\snull-name\sto\sthe\sgiven\smatch.\n\nThis\sbehaviour\sis\scounter-intuitive,\sand\sremoves\sthe\spossibility\sof\san\sefficiency\sgain\swhich\swould\sbe\shad\sby\snot\sbothering\sto\sset\sthe\s""\svariables\swhich\sthe\suser\sclearly\sdeclared\sthey\sdon't\swant.\n\n\n\nThis\shappens\sin\sTcl\s8.0.x\sand\s8.1.x\n\n07/02/1999\s10:52\s-\sstanton\s-\s""\sis\sa\svalid\svariable\sname,\sso\sthe\sbehavior\sis\scorrect.\s\sThe\suser\sshould\suse\snon-capturing\sparentheses\sin\s8.1\sto\savoid\sextracting\svalues\sunnecessarily\n\n
J foundin obsolete:\s8.0.4
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 43.\sRegexp
J title weird\sbehaviour\sof\sregexp\sand\s""\ssubMatchVar's
J type Bug
K 218054ffffffffffffffffffffffffffffffffff
U nobody
Z 4bbf26343770e18974fe720c4b29cd9e