ZapKit

Regex match extractor

Pull structured data out of logs, emails or pasted pages with one pattern: order numbers, codes, amounts, dates or anything else you can describe.

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. 1.Paste the text

    Logs, exports, emails or HTML.

  2. 2.Write the pattern

    Use ( ) to capture the parts you want as columns.

  3. 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.

More Developer tools