Regex Tester with Live Matches

Popular

Test JavaScript regular expressions with match highlights and capture groups.

Regex Expression

/
/

Matches Found (2)

#1: editor@example.org
Index: 17 · Length: 18
Group $1: editor@example.org
#2: admin@example.net
Index: 47 · Length: 17
Group $1: admin@example.net

How to Use Regex Tester with Live Matches

Debug patterns live against sample text with g, i, m, s, u flag toggles, capture group tables, and safety guards against empty-string infinite loops.

Step 1

Enter your regex pattern (without outer slashes) and toggle flags like g, i, m, s, or u.

Step 2

Type or paste sample lines into the test text area.

Step 3

Inspect highlighted match spans and the Capture Groups table below.

Important Limitations

  • •Uses your browser JavaScript RegExp engine—syntax differences like Python (?P<name>) named groups or PCRE atomic groups behave according to ECMAScript rules.
  • •Avoid patterns with nested quantifiers like (a+)+ on long input strings, which can stall any backtracking engine.
Network & Storage Note: Evaluated locally in your browser JavaScript engine.

What Regex Tester with Live Matches Includes

g / i / m / s / u flag toggles
Live match highlighting
Capture group table

Frequently Asked Questions

Frequently Asked Questions

Find quick answers about functionality, security, and usage limits.

No. Enter only the inner pattern and select g, i, or m using the flag toggles.

More Developer & Format Tools

View all