Skip to content
No uploads · runs in browser

Regex Tester

Test a regular expression against sample text and see every match highlighted with a count.

Favorite it to find it fast on home

When to use it

Test \d{3}-\d{4}-\d{4} against phone numbers
Check an email pattern before shipping it
Highlight a pattern inside a log excerpt

How to use it

1Step 1Paste your text into Pattern to start
2Step 2Press Test and the result appears below
3Step 3Use the copy button to take the result anywhere

If the result looks off

The result looks cut off

Use the copy button to get the full result.

My input disappeared

It is saved on this device. Clearing browser storage removes it too.

Frequently asked questions

Which flags are supported?

g, i, and m can be toggled. Other flags are not exposed in the UI.

Can it do replacements too?

This tool checks matches. To actually change text, use the Find & Replace tool.

Related tools

View all →