Improved regex validation for dates as suggested by @khenderick