Regex Tester & Debugger

Test and debug JavaScript regular expressions in real-time with custom flags, capture groups, and match counts.

//gi
Test String
0 characters • 1 lines
Matches Found0 matches
Enter a regular expression above to begin matching.

Regex Quick Reference Cheatsheet

\d — Any digit (0-9)
\w — Word character
\s — Whitespace character
^ / $ — Start / End of line
* / + — 0+ / 1+ repetitions
? — Optional (0 or 1)
(...) — Capture group
[a-z] — Character range