Skip to content
Tcl Source Code Artifact [73755bb48f]
Login

Artifact [73755bb48f]

Artifact 73755bb48fc6ecde7e5fd617647e1a1e6e99ab79:

Ticket change [73755bb48f] - New ticket [6585b21ca8fa6f36|6585b21ca8] <i>Non-greedy match fails in combination with backreference</i>. by anonymous on 2013-07-18 23:03:22.
D 2013-07-18T23:03:22.105
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment This\sregexp\stest\sfails,\sthough\sit\sshould\ssucceed:\r\n\r\n%\sregexp\s{(\\w).*?\\1}\s{Programmer}\r\n0\r\n\r\nIf\syou\sremove\sthe\s'?',\sit\sdoes\ssucceed,\sshowing\sthat\sthe\sproblem\sis\srestricted\sto\snon-greedy\smode.\r\n\r\nThis\sproblem\swas\sinitially\sreported\sto\sthe\sPostgres\sproject:\r\nhttp://www.postgresql.org/message-id/CAM2+6=U8CdfM-qL55XHt+7hVzDRBnZwrHiVZRX2shGZ4OMuMSQ@mail.gmail.com\r\n\r\nAs\sper\sthe\sdiscussion\sthere,\sit\sseems\sthat\sthis\sis\sa\sbug\sin\scfindloop(),\sand\sthat\sthe\sfix\sis\sthat\sthe\s/*\sno\spoint\sin\strying\sagain\s*/\scode\sblock\sis\swrong\sand\sshould\sbe\sreplaced\sby\sa\ssimple\s"break;",\sallowing\sthe\sintermediate\sloop\sto\scontinue\siterating\swith\sthe\snext\spossible\s"begin"\svalue.\s\sI\sfurther\ssuggested\srefactoring\sto\smerge\sthat\stest\sinto\sthe\ssubsequent\sstatements\sthat\sadjust\sestart/estop,\sbut\sthat's\scosmetic,\snot\sessential\sto\sthe\sfix.
J foundin 8.5.8
J is_private 0
J login anonymous
J priority 5\sMedium
J private_contact 26864b65f1c6ce8bda86f87ed9c554e19ac0390d
J resolution None
J severity Minor
J status Open
J submitter anonymous
J subsystem 43.\sRegexp
J title Non-greedy\smatch\sfails\sin\scombination\swith\sbackreference
J type Bug
K 6585b21ca8fa6f3678d442b97241fdd43dba2ec0
U anonymous
Z c94a1b358350b99a977eedbc45904f29