Web features explorer

String matchAll()

Widely available since 2022-07-15
Tags: javascript Groups: JavaScript > Primitive types > Strings

The matchAll() method of strings matches a string against a regular expression and returns an iterator of all results, including capturing groups.

Learning resources on MDN

Browser support

Specifications