Skip to content
Tcl Source Code History Of Ticket 2178507
Login

History Of Ticket 2178507

Artifacts Associated With Ticket 2178507

  1. Ticket change [2ba24fbc67] (rid 118771) by nobody on 2008-10-19 03:01:42:

    1. assignee initialized to: "pvgoran"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
    4. foundin initialized to: "obsolete: 8.5.5"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "nobody"
    10. subsystem initialized to: "43. Regexp"
    11. title initialized to: "regexp premature ending of match"
    12. type initialized to: "Bug"
  2. Ticket change [dbe3148eb1] (rid 108043) by nobody on 2008-10-19 10:27:06:

    1. 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
      
      
    2. login: "[email protected]"
    3. mimetype: "text/plain"
    4. username: "[email protected]"
  3. Ticket change [511d977df0] (rid 126088) by dkf on 2008-10-19 21:02:52:

    1. closedate changed to: "2008-10-19T14:02:52"
    2. closer changed to: "dkf"
    3. 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.)
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. username: "dkf"