i need a regular expression for an expire date for a visa in the layout MM/DD/YYYY i used
var expire = /(\d{2})+\/(\d{2})+\/(\d{4})/
and i know \d is for digit and the {4} allows for exactly 4 digits so im not really sure what im doing wrong here.
thanks for the help
This one works for MM/DD/YYYY:
Or this one for DD/MM/YYYY:
Although, they do not cover dates like 31/02/2012…