Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b170814923e0b6f7efab01cbe80ae0881bdda562
Ticket: 755335ffffffffffffffffffffffffffffffffff
regsub won't substitute against an empty string
User & Date: vincentdarley on 2003-06-16 14:11:55
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Despite the fact that patterns like '^' can and do match 
    the empty string, 'regsub' will refuse to acknowledge 
    them and refuse to perform substitutions.
    
    For example:
    
    GOOD:
    % regexp -- ^ {}
    1
    
    BAD:
    
    % regsub -- ^ {} {replace} var
    0
    % set var
    <empty string>
    
    Of course this should replace '{}' with 'replace'.
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.4.3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "vincentdarley"
  9. subsystem changed to: "18. Commands M-Z"
  10. title changed to: "regsub won't substitute against an empty string"
  11. type changed to: "Bug"