Name
strreplace
— Replace string A in string B
Synopsis
strreplace
{from to}
string
Description
The strreplace command replaces each instance of
from
with to
in string
.
Example
puts [strreplace {hi hello} blahhiblahblahhihiblah]
Produces:
blahhelloblahblahhellohelloblah