Skip to main content

replace

Replaces each substring of the input string that matches the literal match string with the specified literal replacement string

Syntax

string = replace(string, match, replacement)

Example

print replace("The end is nigh", "end", "start")
The start is nigh