Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bd75ebff44ef4ef1098ca22af9e3a97f169a2637
Ticket: 2987620fffffffffffffffffffffffffffffffff
tutorial: typo in regexps (chap More Examples Of Regular Exp
User & Date: grahack on 2010-04-15 09:55:58
Changes

  1. assignee changed to: "davidw"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    There are two occurrences of )* in this page:
    http://www.tcl.tk/man/tcl/tutorial/Tcl20a.html
    which are:
    capture the digits before and after the period for special processing:  [-+]?([0-9])*\.?([0-9]*)
    and
    then "([^"])*" will capture the text inside the double quotes.
    
    It should be *).
    
    % set s 87.65
    87.65
    % regexp {([0-9])*\.?([0-9]*)} $s all first sec
    1
    % set first
    7                       <----  BAD
    % set sec
    65
    % set s {"tavu"}
    "tavu"
    % regexp {"([^"])*"} $s all res
    1
    % set res
    u                         <----  BAD TOO
    
    
  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: "grahack"
  10. subsystem changed to: "75. Tutorial"
  11. title changed to:
    tutorial: typo in regexps (chap More Examples Of Regular Exp
    
  12. type changed to: "Bug"