Web platform features explorer

String replaceAll()

Widely available since 2023-02-27
Tags: javascript Groups: JavaScript > Primitive types > Strings

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.

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

Developer signals

Usage (according to Chrome Platform Status)

~29.379% of page loads. More data at chromestatus.