Developer Tool

Regex Playground

Test, debug, and refine regular expressions with real-time match highlighting, capture group inspection, a common patterns library, and find-and-replace.

Regular Expression
Flags:
/ / g
Test String
Matches: 0
Match Details

Enter a regex pattern and test string

Matches will appear here in real-time

Quick Reference
.Any character
\dDigit [0-9]
\wWord char
\sWhitespace
^Start of line
$End of line
*0 or more
+1 or more
?0 or 1
{n,m}n to m times
(abc)Capture group
[abc]Char class
a|bAlternation
\bWord boundary
(?:abc)Non-capture
(?=abc)Lookahead
Copied to clipboard!