String.matchAll() Playground

Mrs. Endang's letter board: your pattern is cast over the text like a net. Every matchAll match gets its number, index and groups. An interactive…

Why it matters

Pulling structured data out of text (logs, @user mentions, tags, key=value) needs every match and its parts. .match(/g) dropping the groups makes people write their own exec() loops, which are easy to get wrong. matchAll is clean, safe and modern.

The key idea

matchAll gives every match and all its groups

Common mistakes

Try it in this playground