Regular expression for validating month
javascript, regex, validation
Solution
/^(0[1-9]|1[0-2])$/
Problem
What is the regular expression for validating a month with the leading zero? Passes regular expression: 01,02,03,04,05,06,07,08,09,10,11,12 Fails regular expression: ``` 1, 00, 13 and up. ```