Skip to main content

replaceAll

Replaces all the characters according to the regex parameter from the passed in string with the passed in literal replacement string

Syntax

string = replaceAll(string, regex, replacement)

Example

print replaceAll("The end is nigh", "[ei]", "start")
Thstart startnd starts nstartgh