Regex Tester

Test and debug regular expressions live. Highlights matches, shows groups.

🔒 100% client-side
Regular Expression
/ / flags:
Test String
Highlighted Matches
Matches will be highlighted here…
Match Details
Quick Reference

\d β€” digit (0–9)

\w β€” word char (a-z, A-Z, 0-9, _)

\s β€” whitespace

\b β€” word boundary

. β€” any char (except newline)

^ / $ β€” start / end of string

[abc] β€” character class

[^abc] β€” negated class

a|b β€” alternation (a or b)

(...) β€” capture group

(?:...) β€” non-capturing group

(?<name>...) β€” named group

* / + / ? β€” quantifiers

{n,m} β€” repeat n to m times

*? / +? β€” lazy quantifiers

(?=...) β€” positive lookahead

(?!...) β€” negative lookahead

(?<=...) β€” positive lookbehind

(?<!...) β€” negative lookbehind

About Regex Tester

Regex Tester lets you write, test, and debug regular expressions entirely in your browser. Paste your pattern, choose flags (global, case-insensitive, multiline, dotAll), type a test string, and instantly see every match highlighted in different colors. Each match card shows the matched value, character index range, and any captured groups β€” including named groups. Switch to Replace mode to preview substitutions with $1-style back-references. All processing is done locally with the browser's native RegExp engine. Nothing is sent anywhere.