What is a regex match extractor?
A regex match extractor runs a regular expression over text and collects everything it matches. It replaces tedious copy and paste when you need every invoice number from an inbox export, every error code from a log or every price from a page.
Enter a pattern and optional flags, and choose whole matches, capture groups separated by tabs, or capture groups as CSV. Remove duplicates if you only want each value once. The number of matches, capture groups and listed rows is shown above the result.
How to use the Regex match extractor
1.Paste the text
Logs, exports, emails or HTML.
2.Write the pattern
Use ( ) to capture the parts you want as columns.
3.Copy or download
Matches, groups as tab-separated lines, or CSV.
Example: order codes from shipping emails
Three lines mentioning orders A-1042, B-2210 and A-1042 again, with pattern #([A-Z])-(\d+):
- Matches
- 3, with 2 capture groups
- CSV, duplicates removed
- A,1042 and B,2210
Two unique orders, already split into series and number.
Groups become columns
Every pair of brackets in the pattern captures part of each match. With capture group output, each match becomes a row and each group a column, so #([A-Z])-(\d+) splits order codes into a letter and a number ready to paste into a spreadsheet.
Patterns use JavaScript syntax, including named groups, lookbehind and Unicode classes like \p{L}. Flags: i ignores case, m makes ^ and $ work per line, s lets . match line breaks, and u enables full Unicode. Matching always finds every occurrence.
Frequently asked questions
How is this different from the regex tester?
The tester highlights matches while you build a pattern; this outputs the matched data as a list or table.
Can I skip a group?
Write (?:…) for a group that shouldn't become a column.
Why is a column empty?
That optional group didn't take part in the match.
Is my text uploaded?
No. Matching is local.
Related tools
Regex Tester
Test JavaScript regular expressions with live highlighting, groups and replace.
Split text by regex
Split text at any pattern, like mixed commas, semicolons and pipes.
Email Extractor
Pull every email address out of text, deduplicated and ready to copy.
Text Diff Checker
Compare two texts by line, word or character and see what changed.
Cron Expression Explainer
Translate a cron schedule into plain English and see its next run times.
Lorem Ipsum Generator
Placeholder text by paragraph, sentence or word, plain or in <p> tags.
More Developer tools
JSON & data
CSV tools
Network & system
Web & API
Git & releases
Encoding & security
- Base64 encode & decode
- URL encode & decode
- JWT decoder
- Hash generator
- HTML entity encoder
- Text to binary
- Morse code translator
- Caesar cipher & ROT13
- Random string generator
- Secret key generator
- 2FA code generator (TOTP)
- Encrypt & decrypt text
- Encrypt & decrypt files
- SSH key generator
- Base32 encoder and decoder
- Unicode escape converter
- Nano ID generator
- JWT generator