Regex Explainer

Explain regular expressions and test them against sample text

Regex Quick Reference
Character Classes
\d digit (0-9)
\w word char (a-z, A-Z, 0-9, _)
\s whitespace
. any character
[abc] a, b, or c
[^abc] not a, b, or c
Quantifiers
* 0 or more
+ 1 or more
? 0 or 1
{n} exactly n
{n,} n or more
{n,m} between n and m
Anchors & Groups
^ start of string
$ end of string
\b word boundary
(abc) capture group
(?:abc) non-capturing
a|b a or b