Regex Explainer

Parse a regular expression and see each token explained

Tokens

TokenTypeExplanation
\descape\d — matches any digit character [0-9]
{4}quantifierQuantifier — matches the preceding element {4} times
-literalLiteral character "-" — matches the exact character
(0[1-9]|1[0-2])groupCapturing group — captures matched text for back-reference or extraction
-literalLiteral character "-" — matches the exact character
(0[1-9]|[12]\d|3[01])groupCapturing group — captures matched text for back-reference or extraction