Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6c34b509a2fd4a8e4794bc5d964d7486f3522228
Ticket: 1230836fffffffffffffffffffffffffffffffff
Check independency of subpatterns
User & Date: elfring on 2005-07-01 09:45:38
Changes

  1. assignee changed to: "pvgoran"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    I convert the discussion "non-greedy is too greedy" into 
    this bug report.
    http://groups.google.de/group/comp.lang.tcl/browse_frm
    /thread/fd3fa4545458bbf7/0026661d93360192
    
    Pattern examples:
    % regexp {^(\d+),(.+?),} 11,A,B,C X Y Z
    1
    % puts "a) $Y|$Z"
    a) 11|A,B
    % regexp {^(\d+?),(.+?),} 12,A,B,C X Y Z
    1
    % puts "b) $Y|$Z"
    b) 12|A
    % regexp {^..,(.+?),} 13,A,B,C X Y
    1
    % puts "c) $Y"
    c) A
    
    Why can the change to a lazy quantifier in the first part 
    change the match of the capturing parentheses in the 
    second part?
    - Are there any flags in the processing not reset when 
    the first comma is reached?
    - Does the expression compiler generate a FSM with 
    unexpected states?
    
  4. foundin changed to: "obsolete: 8.4.7"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "elfring"
  9. subsystem changed to: "43. Regexp"
  10. title changed to: "Check independency of subpatterns"
  11. type changed to: "Bug"