Regex Tester

Enter a regular expression and sample text. See matches and groups. Uses JavaScript RegExp. All in browser.

Test regex

How it works

We create a RegExp from your pattern (with optional flags g, i, m), run exec or matchAll, and display results.

When to use it

Use this when you need a quick result without installing software or creating an account.

Frequently asked questions

Which regex flavor?

JavaScript (ECMAScript). Slightly different from PCRE or Python.