Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

regex for month

// It will allow only 1,2,3,4,5,6,7,8,9,01,02,03,04,05,06,07,08,09,10,11,12

/(^[1-9]$)|(^[0-1][1-2]$)|(^0[1-9]$)/ 
 
PREVIOUS NEXT
Tagged: #regex #month
ADD COMMENT
Topic
Name
8+8 =