I am trying to do this way can some one tell me if I am doing correct or not I am new to TCl .
if [cequal “RXE” $segtype]
set rxeflds [split [lindex [lregexp $segments {^RXE}] 21] $sep];
if { [lindex $rxeflds 21] == “(“} {
regsub -all {“} $rxeflds (“”) rxeflds
Thanks in advance