Name
replace() — NN 4 IE J3 ECMA n/a
Synopsis
replace(regexpression
,replaceString
)
Returns the new string that results when all matches of the
regexpression
parameter are replaced by
the replaceString
parameter. The original
string is unharmed in the process.
Returned Value
A string.
Parameters
-
regexpression
A regular expression object. See the regular expression object for the syntax to create a regular expression object.
-
replaceString
A string that is to take the place of all matches of
regexpression
in the current string.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.