(avoiding the regsub error message)
It sounds like you're using the wrong hammer for the job. If you have a
string and a known fixed substring, you should use the [string map] command:
set string "this is the known string"
set substr "the known"
set repl "a new"
set new_string [string map [list $substr $repl] $string]
--
Glenn Jackman
"You can only be young once. But you can always be immature." -- Dave Barry