Originally posted by David Harrison
set distno [lindex $xlateInVals 0]if {([expr [string length $distno]] == 6 && [string is digit -strict $distno]) || ([regexp {^[A|V][0-9]} $distno] && [expr [string length $distno]] == 7 ) } { ...}
Originally posted by Eric Fortenberry
if {[regexp -- {^[AV]?d{6}$} [lindex $xlateInVals 0] {}]} { # do something}