Originally posted by Levy Lazarre
string range [lindex [split $xlateInVals -] 1] 0 1
set exp ".*?-(..)"regexp -- $exp $xlateInVals {} $first2chars$first2chars is the value you are looking for
set xlateOutVals [list [string range [lindex [split [lindex $xlateInVals 0] -] 1] 0 1]]