Originally posted by Jon Melin
Hello,
I am having an issue getting a regsub to function properly. I've used similar code in multiple other spots, especially pre-process. I am trying to simply replace and ampersand (&) with the word and. I'm almost certain this has worked in the past but I can't seem to get it to this time. I've tried with brackets, quotes, without backslash, etc. Any suggestions?
I would prefer to do this in the xlate since it's just in one field.
set changed [regsub -all -- {&} $xlateInVals {and} newCo]
set xlateOutVals $newCo
Thank you,
Jon