Artifacts Associated With Ticket 6585b21ca8
Ticket change [73755bb48f] (rid 132921) by anonymous on 2013-07-18 23:03:22:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
This regexp test fails, though it should succeed: % regexp {(\w).*?\1} {Programmer} 0 If you remove the '?', it does succeed, showing that the problem is restricted to non-greedy mode. This problem was initially reported to the Postgres project: http://www.postgresql.org/message-id/CAM2+6=U8CdfM-qL55XHt+7hVzDRBnZwrHiVZRX2shGZ4OMuMSQ@mail.gmail.com As per the discussion there, it seems that this is a bug in cfindloop(), and that the fix is that the /* no point in trying again */ code block is wrong and should be replaced by a simple "break;", allowing the intermediate loop to continue iterating with the next possible "begin" value. I further suggested refactoring to merge that test into the subsequent statements that adjust estart/estop, but that's cosmetic, not essential to the fix. - foundin initialized to: "8.5.8"
- is_private initialized to: "0"
- login: "anonymous"
- priority initialized to: "5 Medium"
- private_contact initialized to: "26864b65f1c6ce8bda86f87ed9c554e19ac0390d"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "anonymous"
- subsystem initialized to: "43. Regexp"
- title initialized to:
Non-greedy match fails in combination with backreference
- type initialized to: "Bug"
Ticket change [5835fa83ff] (rid 133059) by dgp on 2013-07-26 13:25:19:
- assignee changed to: "dgp"
- closedate changed to: "2456500.05925792"
- closer changed to: "dgp"
- icomment: "Fixed for 8.5.15 and 8.6.1."
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"