A compiled regex pattern /^(?P<year>\d{4})-(?P<month>\d{2})-(?P<day>\d{2})$/. 3 capturing groups.
