All Tools

Regex Tester

Test regular expressions with real-time match highlighting

Regular Expression

Test String

Highlighted Matches

Matches will be highlighted here...
No matches yet

How Regex Testing Works

Regular expressions (regex) are patterns used to match character combinations in strings. This tool lets you test your regex patterns in real-time with instant visual feedback.

Features

Frequently Asked Questions

What are regex flags?
Flags modify pattern matching: g (global), i (case-insensitive), m (multiline), s (dotAll - dot matches newlines), u (unicode support).
What are capture groups?
Capture groups are portions enclosed in parentheses () that capture matched text for back-references. For example, (\\d+)-(\\d+) captures two digit groups.
How do I test my regex?
Enter your pattern, select flags, and type your test string. Matches are highlighted in real-time with details shown below.

Answers, not just a number

Short, exact answers to the questions people ask alongside this tool — the number first, then the working.

For teams, not just visitors

Want this calculator on your own site?

We build the calculators on SnoopTool as embeddable widgets in your branding, wired to your own lead form — the same maths, your colours, your domain, your leads. Tell us which one and we will send back a working demo you can put in front of your team.

One reply from a person, within one business day. No newsletter, no sequence. See our privacy policy.