edit()

btmux-0.6-rc4/game/text/help/cat_mux/cat_functions/edit() · 440 B

From the archive btonline-btechmux-0.6-rc4.tbz2

Download the archive   « Back to the archive contents

& edit()
 
  Syntax: edit(<string>,<from>,<to>)
 
  This function edits <string>, replacing all occurrences of the 
  substring <from> with the string <to>. If <from> is '$', then <to> 
  is appended to <string>, while if <from> is '^', then it is 
  prepended.
 
  Example:
 
  > say edit(This is a test,is,x)   
  You say "Thx x a test"
  > say edit(Atlantic,^,Trans)
  You say "TransAtlantic"
 
	See Also: @edit, remove()

Site Stats

Snippets: 1791
Codebases: 571