Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cd867cb2f3d027cdd2e5c3093030c0c9eae33411
Ticket: 219264ffffffffffffffffffffffffffffffffff
Would like regexps to accept a -backward flag for searching
User & Date: nobody on 2000-10-26 05:09:33
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1059 RFE
    Version: 8.1b1
    SubmitDate: '1999-01-15'
    LastModified: '1999-08-04'
    Severity: LOW
    Status: UnAssn
    Submitter: pat
    ChangedBy: stanton
    OS: Windows NT
    OSVersion: 4.0; I also use MacOS 8.5.1
    Machine: X86
    FixedDate: '2000-10-25'
    ClosedDate: '2000-10-25'
    
    
    Name:
    vince darley
    
    Extensions:
    none
    
    DesiredBehavior:
    regexps only find the first match in the given text; it would be very useful to be able to have a '-backwards' flag which started searching from the end of the given string.
    
    As well as being a useful feature, this addition would speed up backwards searches in the Text widget, which currently pretends to search backwards by repeating forward searches until it can't find another forward match.
    
    In Tcl 8.0 it was reasonably easy to write one's own 'regexec' function which matched backwards instead of forwards (using the built in regexp procedures).  However the new regexp code in Tcl 8.1 is so complex it's not clear how to do that any more (although I love the new regexp features).  Probably it still isn't conceptually that difficult for someone who actually understands that code ;-)
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.1b1"
  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:
    Would like regexps to accept a -backward flag for searching 
    
  11. type changed to: "RFE"