TinTin++ Mud Client Manual |
REPLACE Command: #replace {variable} {oldtext} {newtext} Searches the given variable, replacing each occurrence of 'oldtext' with 'newtext'. The 'oldtext' argument is a regular expression. Variables are stored in &1 to &99 with &0 holding the entire matched substring. Example: #function rnd #math result 1d9;#replace test {%.} {@rnd{}} Related: cat, format, function, local, math, script and variable. |