Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4e58fb63a7b1cdbb7028391c585e6242c8ed7380
Ticket: 219232ffffffffffffffffffffffffffffffffff
Error in reporting indices in regexps
User & Date: nobody on 2000-10-26 05:03:55
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 4391 Bug
    Version: 8.3
    SubmitDate: '2000-03-17'
    LastModified: '2000-03-29'
    Severity: MED
    Status: Assigned
    Submitter: techsupp
    ChangedBy: ericm
    OS: Linux
    FixedDate: '2000-10-25'
    ClosedDate: '2000-10-25'
    
    
    Name:
    Laurent Riesterer
    
    ReproducibleScript:
    % regexp -nocase -all -inline -- {aa.*?(--(.*?)--|==(.*?)==).*?aa} \ "aa....--match1--........aa,,,,,,,aa....==match2==........aa"
    aa....--match1--........aa --match1-- match1 {} aa....==match2==........aa ==match2== {} match2
    % regexp -indices -nocase -all -inline -- {aa.*?(--(.*?)--|==(.*?)==).*?aa} \ "aa....--match1--........aa,,,,,,,aa....==match2==........aa"
    {0 25} {6 15} {8 13} {-1 -1} {33 58} {39 48} {25 25} {41 46}
    %
    
    ObservedBehavior:
    the empty submatch in second match reports correctly {} but
    indices report {25 25} instead of {-1 -1}
    
    DesiredBehavior:
    I should can {-1 -1} for all the empty submatches in all the matches
    
    
    
    Verified with 8.3.0 on Linux.
    
    - eric
    
    -- 03/29/2000 ericm
    
    This happens in 8.2.3 as well:
    
    % regexp -indices -start 26 {aa.*(--(.*)--|==(.*)==).*aa} "aa....--match1--........aa,,,,,,,aa....==match2==........aa" a b c d
    1
    % set a
    33 58
    % set b
    39 48
    % set c
    25 25
    % set d
    41 46
    
    Hopefully, Henry can help us out.
    
    - eric
    
    -- 03/29/2000 ericm
    
    
    
  4. foundin changed to: "obsolete: 8.3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "43. Regexp"
  10. title changed to: "Error in reporting indices in regexps"
  11. type changed to: "Bug"