Regex Matches Extractor

Run a regular expression over a text and output each match through a template such as $1\n, with flags, deduplication and sorting.

  • Runs in your browser
  • Free to use
Paste logs, e-mails, HTML or any text.
$1, $2 … or ${name} = capture group, $0 = whole match, \n = line break, \t = tab, $$ = literal $.
ctrl + enter

About this tool

The Regex Matches Extractor is the list mode of a regex tester: write an expression, decide how each match should be printed with a template ($1, ${name}, \n, \t), choose the flags and get a clean, optionally deduplicated and sorted list. It turns delimited exports, log lines or scraped HTML into exactly the column you need, in your browser.

Ready-made extractors exist for IPs, e-mails, URLs and hashes.


How to use it — quick steps

  1. 01

    Enter the text to scan

    Type or paste the text to scan in the field above, for example ||alpha|^||beta|^||gamma|^.

  2. 02

    Adjust the options

    Pick the settings that fit your case; the defaults work for most people. Changes apply instantly.

  3. 03

    Press "Extract"

    Press "Extract" or Ctrl + Enter. The result appears instantly below the form. Results can be copied.


Key features of this tool

  • Precise patterns

    Battle-tested regular expressions match real-world formats while avoiding common false positives.

  • Deduplicated

    Every matched entry is returned once (without duplicates), with counts of total and unique matches.

  • Private

    The text is processed in your browser; text and documents never leave your device, ensuring data privacy.


Frequently asked questions

How does the output template work?

Each match is written through the template: $0 is the whole match, $1, $2 … are capture groups, ${name} a named group, \n a line break and \t a tab. With \n in the template every line becomes one entry that is then deduplicated and sorted.

Which regex flavour?

JavaScript (ECMAScript) with Unicode mode: lookbehind, named groups and \p{…} classes work in modern browsers. The (x) option strips unescaped whitespace and # comments from the pattern.

Can I output more than one group per match?

Yes: combine them in the template, for example $2 $1 or $1,$3, and add a line break with \n so each match becomes one entry.

Are my files or data uploaded?

No. The tool is plain JavaScript that runs in your browser; the files or data you provide here are never uploaded to our servers.


Popular tools


From APIVoid, the team behind IPVoid

Enhance your threat detection capabilities

APIVoid provides threat intelligence APIs to automate security workflows, with simple pricing and a 30-day free trial to start, no card required.

What you get with APIVoid

  • IP reputation and blacklist checks
  • Domain and URL reputation scoring
  • DNS lookups and propagation
  • SSL certificate and TLS details
  • Website screenshots and page info
  • Email address verification
  • 30+ cybersecurity APIs
30-day free trial