Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bf57207e52c131d2a57da34be03792fb450eafbc
Ticket: 471101ffffffffffffffffffffffffffffffffff
RE \A and ^ don't replace the same
User & Date: hobbs on 2001-10-14 20:02:58
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    When no options are specified, \A and ^ should be the 
    same, but they don't seem to behave the same:
    
    (hobbs) 79 % regsub -all {\Aa} {aabbcc} {b} r
    2
    (hobbs) 80 % set r
    bbbbcc
    (hobbs) 81 % regsub -all {^a} {aabbcc} {b} r
    1
    (hobbs) 82 % set r
    babbcc
    
    whereas \Z seems OK:
    
    (hobbs) 83 % regsub -all {(\Aa|c\Z)} {aabbcc} {b} r
    3
    (hobbs) 84 % set r
    bbbbcb
    (hobbs) 85 % regsub -all {(^a|c$)} {aabbcc} {b} r
    2
    (hobbs) 86 % set r
    babbcb
    
    
  4. foundin changed to: "obsolete: 8.3.3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "hobbs"
  9. subsystem changed to: "43. Regexp"
  10. title changed to: "RE \A and ^ don't replace the same"
  11. type changed to: "Bug"