Returns a string where all occurences of a given character are replaced with another character.
Syntax
replace( string , oldcharacter , newcharacter )
string.replace( oldcharacter , newcharacter )
Parameters
string
|
the string to use.
|
oldcharacter
|
the character to replace.
|
newcharacter
|
the character to replace with.
|
Returns
string
|
a new string with replaced characters.
|
Example
s.replace( ochr, nchr )
|