Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: de997c584cbe57755190d053e94ec79812e0b965
Ticket: 219232ffffffffffffffffffffffffffffffffff
Error in reporting indices in regexps
User & Date: dkf on 2000-11-10 17:59:06
Changes

  1. foundin changed to: "obsolete: 8.3.2"
  2. icomment:
    It seems to be adding the index of the start of the match area from the second time round to each of the indices that should be -1.  The following is a simpler expression of the problem, with a few extra spaces thrown in to distinguish the indices from the first match from those of the second match.
    
    % regexp -indices -inline -all a(b(c)d|e(f)g)h abcdhaefgh
    {0 4} {1 3} {2 2} {-1 -1}    {5 9} {6 8} {4 4} {7 7}
    
    You could try, as a work-around, excluding all indices that refer to indices prior to the start of the current match area.  This is much less than ideal though.
    
    
  3. login: "dkf"
  4. mimetype: "text/plain"
  5. priority changed to: "6"
  6. username: "dkf"