Web features explorer

String matchAll()

Widely available
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. To learn more, see String.prototype.matchAll() at MDN.

Compatibility

Specifications