I\'m trying to write a regular expression that validates a date. The regex needs to match the following
Sounds like you're overextending regex for this purpose. What I would do is use a regex to match a few date formats and then use a separate function to validate the values of the date fields so extracted.