I am trying to use ereg to check that dates are in a valid format, they should be in dd/mm/yyyy format, and be in 19xx or 20xx.
I am trying to use the following but with no luck:
ereg("(0[1-9]|[12][0-9]|3[01])/(1[0-2]|0[0-9])/(20[0-9]{2}|19[0-9]{2})", $HTTP_POST_VARS[main_member_dob], $date_bits)
Any suggestions ??
TIA
Jamie