Text

Regex Visualizer

Regex Tester answers whether a pattern matches. Regex Visualizer explains why: token by token, match by match, including named groups and spans from the browser JavaScript RegExp engine.

Explains regex tokens, lists capture groups and highlights match spans. It uses the browser JavaScript RegExp engine, not PCRE.
sample.txt
matches.txt2 matches
(

special/non-capturing group start

?

quantifier

<

literal character

u

literal character

s

literal character

e

literal character

r

literal character

>

literal character

[a-z0-9._%+-]

character class

+

quantifier

)

literal character

@

literal character

(

special/non-capturing group start

?

quantifier

<

literal character

d

literal character

o

literal character

m

literal character

a

literal character

i

literal character

n

literal character

>

literal character

[a-z0-9.-]

character class

+

quantifier

\.

escaped .

[a-z]

character class

{2,}

range quantifier

)

literal character

runtime

Browser-local execution

Inputs stay inside the current tab unless you copy, download or explicitly export.

memory

Session handoff

Magic Paste can pass input to a target tool through sessionStorage, never through the URL.

control

User-owned state

Favorites, recent tools and workflow history are local browser data you can clear from the browser.

smart handoff graph

Suggested next moves

session handoff ready
sponsor

Fixed native slots for developer products. No third-party tracking, no popups, no layout shift.

Sponsor this tool
01

How to use

  1. 01Enter a regex pattern and flags.
  2. 02Paste representative sample text.
  3. 03Review token explanations and copy the match report.
02

FAQ

Which regex engine is used?
The browser JavaScript RegExp engine. PCRE-only features may not compile.
03

Related tools