Artifacts Associated With Ticket 2178507
Ticket change [2ba24fbc67] (rid 118771) by nobody on 2008-10-19 03:01:42:
- assignee initialized to: "pvgoran"
- cmimetype initialized to: "text/plain"
- comment initialized to:
This regexp seems to not fully match the example expression where it would seem to. I'm not sure whether this is expected behaviour or not but seems so to me. % set exp {<(.+?)> (.*)} <(.+?)> (.*) % set test {<hello> does this work} <hello> does this work % regexp $exp $test a b c 1 % set a <hello> % set b hello % set c Works this way...: % set exp {<(.+?)> (.*)$} <(.+?)> (.*)$ % regexp $exp $test a b c 1 % set a <hello> does this work - foundin initialized to: "obsolete: 8.5.5"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "43. Regexp"
- title initialized to: "regexp premature ending of match"
- type initialized to: "Bug"
Ticket change [dbe3148eb1] (rid 108043) by nobody on 2008-10-19 10:27:06:
- icomment:
ah, looks like it's because of mixing greedy with non-greedy as per here http://groups.google.com/group/comp.lang.tcl/browse_thread/thread/911d399d8b1d2317/4cc59fcbcde0ee7c?lnk=gst&q=greedy&pli=1
- login: "[email protected]"
- mimetype: "text/plain"
- username: "[email protected]"
- icomment:
Ticket change [511d977df0] (rid 126088) by dkf on 2008-10-19 21:02:52:
- closedate changed to: "2008-10-19T14:02:52"
- closer changed to: "dkf"
- icomment:
Working as documented? Not A Bug. (Whether or not you want the RE engine to work differently is a separate matter. I'm no RE guru, and so won't contemplate trying to alter the way the existing engine handles mixed-greediness.)
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "dkf"