Iterate all matches with captures.
Section: JavaScript Regex APIs
String.matchAll()
javascript
javascript
Array.from(text.matchAll(/(?<key>\w+)=(?<val>\w+)/g))Explanation
Useful when you need every match and capture groups.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing JavaScript Regex APIs