Below is my tcl script for checking if there is any 0-9 number find in the variable.
set a "abc"
if {[ regexp {[0-9]*} $a ]} {
puts "Found number in $a"
} else {
puts "Doesn't find number in $a"
}
But when I run it, it reports "Found number in abc".