Brass Core Plugins

strreplace

Replaces all occurances of a string with another.

Syntax

strreplace(original, search, replacement)

Example

Replace hlp with help.

errstring = "This hlpfile is hlping you to hlp yourself with hlpful hlp."
.echoln "Original:  ", errstring

errstring = strreplace(errstring, "hlp", "help")
.echoln "Corrected: ", errstring