.
D 2000-10-26T05:11:24
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s5865\sBug\nVersion:\s8.2\nSubmitDate:\s'2000-06-08'\nLastModified:\s'2000-06-21'\nSeverity:\sMED\nStatus:\sUnAssn\nSubmitter:\stechsupp\nChangedBy:\sericm\nOS:\sSunOS\nOSVersion:\sSunOS\sbeast\s5.7\sGeneric_106541-09\ssun4u\ssparc\sSUNW,Ultra-4\nMachine:\sIt's\snot\smine,\sit's\sArsDigita's,\sand\sI\sknow\snothing\sabout\sit.\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-10-25'\n\n\nName:\nIan\sBaker\n\nExtensions:\nI\shave\sno\sclue.\s\sIt's\srunning\sinside\sAOLserver,\sif\sthat\shelps\sat\sall.\n\nReproducibleScript:\n%\sregexp\s"(.+?)(.+?)(.{2,4})(.+?)(.+)"\s"abcdefghijklm"\smatch\sa\sb\sc\sd\se\n1\n%\sputs\s"$a:$b:$c:$d:$e"\na:b:cd:e:f\n\nObservedBehavior:\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.\n\nDesiredBehavior:\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)\n\n%\sregexp\s"(.?)(.+?)(.{2,4})(.+?)(.+)"\s"abcdefghijklm"\smatch\sa\sb\sc\sd\se\n1\n%\sputs\s"$a:$b:$c:$d:$e"\na:b:cdef:g:hijklm\n\n\n\n
J foundin obsolete:\s8.2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 43.\sRegexp
J title More\sinfo\son\sthe\sgreedy/non-greedy\sproblem\s(ticket\s2866)
J type Bug
K 219358ffffffffffffffffffffffffffffffffff
U nobody
Z 41236a57853c33ec71710a3607f30a46