Originally posted by David Harrison
hcitcl> set in 1234567890hcitcl> regexp {(d{3})(d{3})(d{4})} $in matchAll matchOne matchTwo matchThree1hcitcl> set new "$matchOne $matchTwo $matchThree"hcitcl>echo $new123 456 7890
hcitcl>regsub {(d{3})(d{3})(d{4})} $in {1 2 3} new1hcitcl>echo $new123 456 7890
set xlateOutVals [list $new]
set xlateOutVals [list [cconcat [string range $xlateInVals 0 2] [string range $xlateInVals 3 5] [string range $xlateInVals 6 end]]]
Originally posted by Michael Hertel