Date Regular Expression MM/DD/YYYY

var dateRegExp = “/^(1|01|2|02|3|03|4|04|5|05|6|06|7|07|8|08|9|09|10|11|12)\[/](([0-9])|([0-2][0-9])|([3][0-1]))\[/]\[0-9]{4}$/”

i devided reqular expression into some parts below to understand it easily.

“/^

(1|01|2|02|3|03|4|04|5|05|6|06|7|07|8|08|9|09|10|11|12)\

[/]

(([0-9])|([0-2][0-9])|([3][0-1]))\

[/]

\[0-9]{4}

$/”

I Hope, it Helps 🙂