Apply a regular expression to text and list every match on its own line — ideal for grep-style extraction in the browser.
Behavior
The global (g) flag is appended automatically when missing so repeated occurrences are all returned. Each full match string is emitted; capturing groups are not expanded into separate columns unless the pattern itself includes them in the matched text.
Invalid patterns surface as localized errors rather than silent failure.
When to use it
Pull email addresses from a blob, enumerate version numbers in changelogs, harvest ticket IDs from support threads, or verify that a pattern captures all expected tokens.
Limitations
Extremely large inputs with thousands of matches may slow rendering. Lookbehind and Unicode property escapes require modern browser engines. Overlapping matches follow JavaScript’s leftmost-first convention, which may skip nested overlaps some users expect.