i have written a regular expression for date of birth which is :
(0?[1-9]|[12][0-9]|3[01])[-/](0?[1-9]|1[012])[-/](1[0-9]{3}|20[0-2][0-4])
This RE ensures that month is not greater than 12 and date is not greater than 30 or 31 as well as year is not greater than 2025.Since Gregorian calendar was introduced in 1582,should i start the year searching from 1582 or this works fine.Do i need to simplify this expression as this works fine .
I am just expecting to either find a way out to reduce this complex regular expression and also do i need to include year starting from 1582 or not