Reader's Comments

on untitled document at /tcl/pattern-matching.adp

[A-z] includes characters other than A-Z and a-z (see the ASCII man page). I ran a test using tclsh 8.3:

% set x ^
^
% regsub {[A-z]} $x {OOPS} x2
1
% puts $x2
OOPS


-- Paul Takemura, January 29, 2005
Add a comment