String replaceAll()
Widely available since 2023-02-27
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.
Learning resources on MDN
Browser support
- Chrome 85 Released on 2020-08-25
- Chrome Android 85 Released on 2020-08-25
- Edge 85 Released on 2020-08-27
- Firefox 77 Released on 2020-06-02
- Firefox for Android 79 Released on 2020-07-28
- Safari 13.1 Released on 2020-03-24
- Safari on iOS 13.4 Released on 2020-03-24
Specifications
- ECMAScript Language Specification (#sec-string-objects), from TC39 (Ecma International).