Test regular expressions and export the matches
Type a pattern and see every match highlighted in your text, with capture groups in a table. Preview a replacement, or download all matches as CSV.
Results appear here as you paste.
Runs in your browser. Nothing you paste is uploaded.
How to use it
- 1
Enter a pattern and flags: g finds all matches, i ignores case, m makes ^ and $ match at each line.
- 2
Paste your text. Matches are highlighted as you type, and every match and capture group is listed in a table.
- 3
Optionally type a replacement ($1, $<name>) to preview the result. Copy it, or download the matches as CSV.
Frequently asked questions
Short answers to what people usually ask before installing.
Which regex flavor is this?
JavaScript (ECMAScript), run by your browser's own engine. It supports named groups (?<name>...), lookbehind, Unicode property escapes with the u flag, and the d, s, u, v and y flags. Syntax JavaScript doesn't have, such as possessive quantifiers from PCRE, shows an error.
Why does it find only one match?
Without the g flag, a JavaScript regex stops at the first match. Add g to list them all.
How do I export the matches?
Click "Download CSV". You get one row per match, with the full match and each capture group in its own column. Named groups use their names as column headers when every group is named.
Is there a limit?
The table shows up to 1,000 matches. Patterns with catastrophic backtracking, like (a+)+$ on long input, can freeze the tab because they run in your browser; reload the page if that happens.
Is my text uploaded?
No. Patterns and text stay in your browser.
More free tools
Other small tools for extracting and cleaning web data. All run in your browser.
DataLens