Development and data formats

Regular expression (regex) tester online

Test regular expressions live: match highlighting, capture groups, flags and replace. Includes ready-made patterns for email, URLs and more.

Matches

#MatchIndexGroups

Everything runs in your browser. Nothing is sent to our servers.

How it works

Type your regular expression and test text: matches are highlighted as you type, and below you see each one with its position and capture groups. You can toggle the g, i, m, s and u flags.

Fill in the replace field to see the result of applying the regex, using $1, $2 or $<name> to insert groups. Includes sample patterns for email, URL, phone numbers and dates. It uses the browser JavaScript engine.

Frequently asked questions

Do regexes work the same in every language?

The basics are shared, but there are differences (lookbehind, named groups, flags). This tool uses the JavaScript engine.

Why does my regex hang?

Some patterns with nested quantifiers, like (a+)+, cause "catastrophic backtracking". Simplify the pattern or make it more specific.

Need a custom tool for your business?

Tell us about your case and in 30 minutes we'll give you a clear diagnosis: what's going on, what to do first and what it might cost. No strings attached.

Get a free assessment Message us on WhatsApp

Reply within 24 business hours