Regex Tester

Test regular expressions with real-time highlighting and match details.

//

Regex Quick Reference

.Any character (except newline)
\dDigit [0-9]
\wWord character [a-zA-Z0-9_]
\sWhitespace
^Start of string/line
$End of string/line
*0 or more
+1 or more
?0 or 1 (optional)
{n,m}Between n and m times
(abc)Capture group
[abc]Character class
a|bAlternation (a or b)
(?=abc)Lookahead
(?<=abc)Lookbehind