Below is the regex I am have:
Pattern ddpat = Pattern.compile( "(\\d{1,2}/\\d{1,2}/\\d{4})" );
For an invalid date pattern 02/29/1975
(Since it is not a leap year), when I try the above REGEX
on this invalid date, I don't want my REGEX to match this invalid date.
Please suggest is there some way to achieve this.