July 1998
Intermediate to advanced
1456 pages
65h 5m
English
replace() — NN 4 IE J3 ECMA n/a
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.
A string.
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.
Read now
Unlock full access