I need to check a string for valid date values in either m/d/yyyy or mm/dd/yyyy format. In my regex checker app the following two expressions work fine to identify valid dates:
/^(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.]((?:19|20)\d\d)$$/
and
/^((1-9]|11012]))- \/.]((1-9]||12]]0-9]|3301]))- \/.]((?:19|20)\d\d)$$/
Note the double dollar signs for AA
When I try and use these expressions in an IF Action using the REGEX Tools it does not recognize the valid dates. Any suggestions?