Lua SwxWare v13.10
This helper function replaces a given substring within a given string by a replacement substring.
local sReplace = StringReplace(str, substr, repl)
This function returns a string value.
Example:
local sReplace = StringReplace("Erika Mustermann", "Muster", "Bau") PBXScript.OutputTrace("sReplace = " .. sReplace) --> sReplace = Erika Baumann
By Tom Wellige