[[String.prototype.matchAll (JavaScript)|String.prototype.matchAll]]を使う。戻り値は`RegExpStringIterator`なので注意。
```javascript
Array.from("a1 b2 c3 zz d4 e5 end".matchAll(/[a-z]{2,}/g))
// 0: ['zz', index: 9, input: 'a1 b2 c3 zz d4 e5 end', groups: undefined]
// 1: ['end', index: 18, input: 'a1 b2 c3 zz d4 e5 end', groups: undefined]
```
[[名前付きキャプチャグループ]]を使うと、`groups`に名前をキーとした値が入る。
```js
Array.from("No10 No200".matchAll(/No(?<number>[0-9]+)/g))
// 0: ['No10', "10", index: 0, input: 'No10 No200', groups: {number: 10}]
// 1: ['No200', "200", index: 5, input: 'No10 No200', groups: {number: 200}]
```