Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

match date regex

/^([1-2][0-9]|3[0-1]|0?[1-9])([-./ ])(1[0-2]|0?[1-9])(2)([d]{4}|[d]{2})$/
 
PREVIOUS NEXT
Tagged: #match #date #regex
ADD COMMENT
Topic
Name
2+8 =