<i>More info on the greedy/non-greedy problem (ticket 2866)</i> status still Open with 7 other changes
by
.
D 2017-10-26T01:42:08.090
J assignee aku
J closer nobody
J comment OriginalBugID:\s5865\sBug\r\nVersion:\s8.2\r\nSubmitDate:\s'2000-06-08'\r\nLastModified:\s'2000-06-21'\r\nSeverity:\sMED\r\nStatus:\sUnAssn\r\nSubmitter:\stechsupp\r\nChangedBy:\sericm\r\nOS:\sSunOS\r\nOSVersion:\sSunOS\sbeast\s5.7\sGeneric_106541-09\ssun4u\ssparc\sSUNW,Ultra-4\r\nMachine:\sIt's\snot\smine,\sit's\sArsDigita's,\sand\sI\sknow\snothing\sabout\sit.\r\nFixedDate:\s'2000-10-25'\r\nClosedDate:\s'2000-10-25'\r\n\r\n\r\nName:\r\nIan\sBaker\r\n\r\nExtensions:\r\nI\shave\sno\sclue.\s\sIt's\srunning\sinside\sAOLserver,\sif\sthat\shelps\sat\sall.\r\n\r\nReproducibleScript:\r\n%\sregexp\s"(.+?)(.+?)(.{2,4})(.+?)(.+)"\s"abcdefghijklm"\smatch\sa\sb\sc\sd\se\r\n1\r\n%\sputs\s"$a:$b:$c:$d:$e"\r\na:b:cd:e:f\r\n\r\nObservedBehavior:\r\nIf\sthe\sfirst\squantifier\sis\snon-greedy,\sthe\sRE\smatches\s"non-greedy\sonly",\sas\sis\sdescribed\sin\sticket\s#2866.\s\sIf\sthe\sfirst\squantifier\sis\sgreedy,\showever,\sthe\sRE\sno\slonger\smatches\seither\s"greedy\sor\snon-greedy,\sbut\snot\ssome\smixture\sof\sthe\stwo":\s\sit\sbegins\sto\swork\sas\sexpected.\r\n\r\nDesiredBehavior:\r\nHere's\san\sRE\sthat\smixes\sgreedy\sand\snon-greedy\squantifiers,\syet\sworks\sas\sexpected,\smixing\sthe\stwo.\s(note\sthat\sthe\s1st,\s3rd\sand\s5th\ssubexpressions\smatch\sgreedy,\swhile\sthe\s2nd\sand\s4th\sdo\snot)\r\n\r\n%\sregexp\s"(.?)(.+?)(.{2,4})(.+?)(.+)"\s"abcdefghijklm"\smatch\sa\sb\sc\sd\se\r\n1\r\n%\sputs\s"$a:$b:$c:$d:$e"\r\na:b:cdef:g:hijklm
J icomment Related\sto\r\n\r\n1.\shttps://core.tcl.tk/tcl/tktview?name=219219ffff\r\n2.\shttps://core.tcl.tk/tcl/tktview?name=2798939fff
J login dram
J mimetype text/plain
J severity Minor
K 219358ffffffffffffffffffffffffffffffffff
U dram
Z 10eabee196a7f6c0a6b8f58423e6272b