Web platform features explorer

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.

Status

Baseline Widely Available (since 2023-02-27)

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)

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