Widely Available
Strings
id: string-replaceall
String replaceAll()
The
replaceAll() method of strings returns a new string where all matches of a pattern (a string or regular expression) have been substituted with a replacement string.
Baseline Status:
Achieved Widely Available on Feb 27, 2023 (Cross-browser Newly Available since Aug 27, 2020).
Desktop Browser Engine Support
Google Chrome
85
Supported
Mozilla Firefox
77
Supported
Apple Safari
13.1
Supported
Microsoft Edge
85
Supported
Mobile Browser Engine Support
Chrome Android
85
Firefox Android
79
Safari iOS
13.4
Specifications and References
MDN Browser Compat Data Keys: