Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c3a05ec2426bb15a7371ffcae231c0ef1882f59e
Ticket: 1902436fffffffffffffffffffffffffffffffff
regexp with escaped quantifier broken
User & Date: gneumann on 2008-02-26 19:17:27
Changes

  1. assignee changed to: "pvgoran"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Blackslashing the * quantifier seems broken in Tcl 8.5. The documentation says that "\k matches the non-alphanumeric character k taken as an ordinary character, e.g. \\ matches a backslash character". So \* is supposed to match * literally, but it does not in Tcl 8.5. In Tcl 8.4, it works as expected.
    
    Tcl 8.5:
    
      set text {this is *bold*!}
      this is *bold*!
      % regexp {\*bold\*} $text
      0
      % set ::tcl_patchLevel
      8.5.1
    
    Tcl 8.4:
    
      % set text {this is *bold*!}
      this is *bold*!
      % regexp {\*bold\*} $text
      1
      % set ::tcl_patchLevel
      8.4.13
    
    
    Best regards
    -gustaf neumann
    
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "gneumann"
  10. subsystem changed to: "43. Regexp"
  11. title changed to: "regexp with escaped quantifier broken"
  12. type changed to: "Bug"