Regex Tester

Test any regular expression against sample text. See matches highlighted instantly as you type.

Runs in your browser · No data sent anywhere
Test String
Highlighted Matches
100%
Browser-Based
yes
Real-Time
yes
Syntax Highlight
∞
Free Uses
Real-Time Match
Group Capture
Instant
100% Private

Common Patterns

\d+ — Match digits
[a-z]+ — Match letters
\w+@\w+\.\w+ — Email
https?://.+ — URL
\s+ — Whitespace
^start — Begins with
end$ — Ends with
(group) — Capture group

Character Classes

\d — Digit [0-9] \w — Word char [A-Za-z0-9_] \s — Whitespace . — Any character [abc] — a, b, or c [^abc] — Not a, b, c [a-z] — Range a-z

Quantifiers

* — 0 or more + — 1 or more ? — 0 or 1 {n} — Exactly n {n,} — n or more {n,m} — n to m

Frequently Asked Questions

Does the tester support RegEx flags like 'global' or 'case-insensitive'?

Yes, you can toggle flags such as g (global), i (insensitive), and m (multiline) to test different matching behaviors.

Will it highlight which part of my text matches the pattern?

Yes, as you type your regular expression, all matching substrings in your test text are highlighted in real-time.