Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ef705d9b677f608ab23932776c9f9b9483a0ea7a
Ticket: 218012ffffffffffffffffffffffffffffffffff
"regexp {.*?} foo" should give error: couldn't compile regul
User & Date: nobody on 2000-10-26 00:52:06
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 890 Bug
    Version: 8.1a2
    SubmitDate: '1998-12-02'
    LastModified: '1998-12-03'
    Severity: MED
    Status: Closed
    Submitter: admin
    ChangedBy: stanton
    OS: All
    OSVersion: NA
    Machine: NA
    FixedDate: '2000-10-25'
    FixedInVersion: NA
    ClosedDate: '1998-12-03'
    
    
    > tclsh8.0
    % regexp {.*?} foo
    couldn't compile regular expression pattern: nested *?+
    
    > tclsh8.1
    % regexp {.*?} foo
    1
    
    I think it's probably a bug that 8.1 regexps don't choke on the 
    redundant '?'.  They do choke on redundant '*' and '+' quantifiers, so they 
    probably should do the same thing for '?'.  I'll let Henry know about it.
    -Scott
    
    
    this is not a bug.  it is valid regexp syntax in 8.1
    
    
  4. foundin changed to: "obsolete: 8.1a2"
  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:
    "regexp {.*?} foo" should give error: couldn't compile regul
    
  11. type changed to: "Bug"