- This topic has 3 replies, 4 voices, and was last updated 14 years, 7 months ago by .
-
Topic
-
AIX 5.2 Version 5.3P Rev2
Hello All,
I’m trying to change all special characters in an XLTP proc to space and the & to the word and. I can get all the characters changed except the ampersand.
below is my code can anyone comment on what I’m going wrong. When I echo the input I only get what is to the right of the ampersand. If there is no ampersand in the field I get the full field value.
There are no syntax errors and I get the correct output if there isn’t an ampersand.
regsub -all — & [lindex $xlateInVals 0] “and” noampers;
echo $noampers
set char $noampers
regsub -all — {,|.|-|(|)|/} $char { } char1;
set xlateOutVals
}
Viewing 2 reply threads
Viewing 2 reply threads
- The forum ‘Tcl Library’ is closed to new topics and replies.