Regex Tester

Test regular expressions with live highlighting and capture groups. Runs in your browser.

/ /

MATCHES 0

MATCH DETAILS

CHEATSHEET

.any character
\ddigit [0-9]
\wword char [a-zA-Z0-9_]
\swhitespace
^start of string
$end of string
*0 or more
+1 or more
?0 or 1
{n,m}between n and m
(abc)capture group
[abc]character class
a|balternation
\bword boundary
(?:abc)non-capturing group
(?=abc)positive lookahead