Test regular expressions. Live.
Type a regex and test string below. Matches highlight in real time. 100% private — nothing leaves your browser.
Matches
0 matches
Enter a regex and test string to see matches
Quick Reference
.Any character except newline
\dDigit [0-9]
\wWord char [a-zA-Z0-9_]
\sWhitespace
\bWord boundary
^Start of string/line (m)
$End of string/line (m)
*0 or more
+1 or more
?0 or 1 (lazy)
{n,m}Between n and m
(...)Capture group
(?:...)Non-capture group
(?=...)Lookahead
(?!...)Negative lookahead
(?<=...)Lookbehind
(?<!...)Negative lookbehind
|Alternation (OR)
[...]Character class
[^...]Negated char class
\1Backreference (group 1)
\\Escape character