I have a text field with a input mask (99-99-9999) and a hit (mm-dd-yyyy) where user inputs a DOB. This field is then used to calculate the Age of the person.
I'm trying to write a regex so that a month of 13 and day of 32 are not allowed and I can't seem to get the syntax correct in Survey 123 - it appears to be correct in online regex checkers....
The regex is as follows:
regex(.,'^((0[1-9])|(1[12]))-((0[1-9])|(1[\d])|(2[\d])|(3[01]))-([\d]{4})$')
Am I missing something else?
Cheers,
RyanE