> I am having trouble removing the pipe char | from a string in TCL.
Tcl 8.2+:
set str [string map [list | ""] $str]
otherwise:
regsub -all {\|} $str "" str
The regsub you just need to be careful to escape the replacement
chars. Also, the string map can be faster when using lots of
find/replace pairs. 8.4 bends that a bit with regsub in special
compilable cases, but string map is best for str->str mapping.
Jeff
