Free Tool Directory / Other Tools / Regex Tester

Regex Tester

Free regex tester: test a regular expression against your text, see matches highlighted, and inspect every capture group. Flags adjustable.

Test a regular expression against your text and see every match highlighted, with each capture group listed separately. Adjust the flags and retest until the pattern catches exactly what you want. Use it while writing a validation pattern for email addresses or phone numbers before you paste it into your code.

Open tool →

Free to use, no sign-up. The tool opens on its own page and runs in your browser.

Need more? Go Pro

Pro: download your Regex results as CSV & save history, $5 one-time

Get Pro →

Alipay — $5

Or unlock every tool with All-Access Pro — $15 once.

Get All-Access — $15 once

Alipay — $15

Prices are adjusted by country so the same tool costs less where incomes are lower — you see the price for your country.

Prefer Alipay? See all payment options.

Already paid? Log in to Pro

How to use it

  1. Type a regular expression and pick flags.
  2. Paste the text to test against.
  3. Press Test regex to see matches highlighted and capture groups listed.

Common questions

What are capture groups?

Parts of a pattern inside parentheses. Each group is listed separately in the table, so you can see exactly what each part of the pattern matched — useful when you want to extract pieces of text, not just find them.

Why does my pattern match nothing?

Check that the pattern really describes your text: a missing escape (\d, not d), a flag you forgot (i for case), or ^ and $ without the m flag on multi-line text are the usual suspects.

Can a regex freeze my page?

Yes — a pattern like (a+)+$ on a long string of a's can take exponentially long to test. This is called catastrophic backtracking. Keep patterns simple, avoid nested quantifiers, and test on short text first. This tool caps the match loop, but a single slow match can still hang the page, so test risky patterns on a few characters first.

More Other Tools tools

← Back to all tools · Browse guides