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.


This example replaces "TF" with "TinyFugue" in every line sent by the server.

  /def -mregexp -t"TF" replace_tf = \
      /test substitute(strcat({PL}, "TinyFugue", \
          replace("TF", "TinyFugue", {PR})))

See: evaluation, /tr

Back to index
Back to tf home page
Copyright © 1995 - 1999 Ken Keys