TinTin++ Mud Client Manual
Replace
space
Syntax: #replace {variable} {oldtext} {newtext}
space
This command will search the variable for the given string in oldtext and replace it with the string given in newtext.
space
If newtext is left blank the oldtext match will be removed.
space
Example: #var {test} {bli bla blo};#replace {test} {bl} {tr}
space
This would change the variable test from 'bli bla blo' to 'tri tra tro'
space
Keep in mind that oldtext has escape codes substituted (while newtext has not), so if you want to replace a '\' character you'll need to enter '\\'
space
See also: Format, Function, Local, Math, Script and Variable.
space