Test, validate and match regular expressions
This regular expression matches date strings in a 'YYYY-MM-DD' format, specifically capturing years that begin with a '2' (ranging from 2000 to 2999). It extracts the month and day components into separate groups, allowing both single-digit and zero-padded values for days (0-31) and months (0-12). Using the global and multiline flags, it is designed to scan multi-line texts and find all matching date patterns effectively.