Skip to content
hateitall

Regex Match Extractor

Pull every email, link, number or custom pattern out of a block of text into a clean list.

Processed locallyIn: Text, RegexOut: Text, CSV

Loading tool…

How to use regex match extractor

  1. Paste the text and choose a preset such as emails, URLs or numbers, or type your own pattern.

  2. Choose whether to take the whole match or one capture group.

  3. Remove duplicates, sort the list and pick how items are joined.

  4. Copy the list, download it, or download a CSV with every group and position.

What this tool does

  • Presets for emails, URLs, numbers, hashtags, ISO dates and quoted text.
  • Takes the whole match or any numbered or named group.
  • Removes duplicates with or without regard to case, and sorts naturally so 2 comes before 10.
  • Collects up to 20,000 matches in a background worker with a time limit.

How the result is verified

Each value in the list is checked against the source text and must appear in it exactly as shown.

Frequently asked questions

Can I extract only part of each match?

Yes. Put the part you want in parentheses, for example "([^"]*)" for text inside quotes, then choose that group under Take.

Is there a limit on text size?

Large pastes of several megabytes work. Matching stops at 20,000 results, and any run that takes over 1.5 seconds is stopped with a message.

Is my data uploaded to a server?

No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.

Live regex matching with groups, flags and a replace preview

Regex · Text→ MatchesLight on device

Split text on any regex, trim pieces and export as lines, JSON or CSV

Text · Regex→ TextLight on device

Tested regular expressions for emails, URLs, dates, IDs and more

Text→ RegexLight on device

Normalise quoting, trim cells and fix line endings

CSV · TSV · Text→ CSVLight on device