Developer Tools

Regex Tester & DebuggerMaster Regular Expressions

Test, debug, and explore regular expressions in real-time. Features syntax highlighting, match explanation, and a quick reference cheatsheet.

//g

0 matches found

No matches found. Try adjusting your regex or test string.

Quick Reference

Character Classes

.Any character except newline
\wWord character [a-zA-Z0-9_]
\dDigit [0-9]
\sWhitespace
[abc]Any of a, b, or c
[^abc]Not a, b, or c
[a-z]Character between a & z

Anchors

^Start of string/line
$End of string/line
\bWord boundary

Quantifiers

*0 or more
+1 or more
?0 or 1
{3}Exactly 3
{3,}3 or more
{3,5}3 to 5

Groups & Lookaround

(...)Capturing group
(?:...)Non-capturing group
(?=...)Positive lookahead
(?!...)Negative lookahead