Regex Explainer
Parse a regular expression and see each token explained
Tokens
| Token | Type | Explanation |
|---|---|---|
\d | escape | \d — matches any digit character [0-9] |
{4} | quantifier | Quantifier — matches the preceding element {4} times |
- | literal | Literal character "-" — matches the exact character |
(0[1-9]|1[0-2]) | group | Capturing group — captures matched text for back-reference or extraction |
- | literal | Literal character "-" — matches the exact character |
(0[1-9]|[12]\d|3[01]) | group | Capturing group — captures matched text for back-reference or extraction |