Regex Tester

Test JavaScript regular expressions with live highlighting and capture-group inspection.

/(\w+)@(\w+\.\w+)/g
Flags

3 matches

Test string
Highlighted
Reach us at hello@countrydevs.com or support@example.org. Old email: admin@test.co
Match details (3)
#1 @12hello@countrydevs.com
$1hello$2countrydevs.com
#2 @37support@example.org
$1support$2example.org
#3 @69admin@test.co
$1admin$2test.co

How to test a regex

  1. 1
    Write your regexUse standard JavaScript syntax — no leading/trailing slashes.
  2. 2
    Toggle flagsg, i, m, s, u, y — click to enable. Every change updates matches in real time.
  3. 3
    Inspect matchesMatches are highlighted inline. Capture groups appear in the match details list below.

Frequently asked questions

Which regex flavor?
JavaScript (ECMAScript). Lookbehind, named groups, Unicode properties — all supported in modern browsers.
Is there a max match count?
We cap rendering at 2000 matches per run to keep the UI responsive. The first 50 are shown in the details list.
Does it escape user input?
Yes. Highlighted output is HTML-escaped before rendering so patterns cannot inject markup into this page.
Can I save a regex?
Not yet. Use your browser's URL/history for now — we may add shareable links in a future update.

Related tools

Need a custom dev tool for your team?

We build internal tools, dashboards, APIs, and SaaS platforms. If you can describe it, we can ship it.

Built by CountryDevs · No signup · No ads · No tracking