replaceWith

Searches srchString, replacing occurrences of findString with replaceString.

Syntax

replaceWith(srchString, findString, replaceString)

Parameters

srchString

Specifies the value of this variable is not modified.

findString

Specifies the string to search for that will be replaced.

replaceString

Specifies the string that will replace each occurrence of findString.

Returns

Returns the string in which occurrences of findString have been replaced with replaceString.