[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
[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