Function usage:
REPLACE(old, new,
string)
Command usage:
/REPLACE old new
string
Echoes (in command form) or returns (in function form) string, with any occurrences of old in string replaced by new.
Example:
This example replaces "TF" with "TinyFugue" in every line sent by the
server.
See: evaluation,
/tr
/def -mregexp -t"TF" replace_tf = \
/test substitute(strcat({PL}, "TinyFugue", \
replace("TF", "TinyFugue", {PR})))
Back to index
Back to tf home page