Reply To: regsub – changing T in the URL to &

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf regsub – changing T in the URL to & Reply To: regsub – changing T in the URL to &

#57249
Charlie Bursell
Participant

So will the string command:

set xlateOutVals [string map {\T\ &} $xlateInVals]

I usually don’t like to use string commands on a list but since you are setting a list, its OK

FWIW, the string command isa bit more ergonomic when doing minor changes.  Its more optimized and designed to do a specific task.

And, the nice thing is you don’t have to worry about escaping regular expression special characters

Forum Statistics

Registered Users
5,115
Forums
28
Topics
9,291
Replies
34,426
Topic Tags
286
Empty Topic Tags
10