Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

regex 1-31 days

Regex for 0-31:

(0[1-9]|[12]d|3[01])
Or if you don't want days with a preceding zero (e.g. 05):

([1-9]|[12]d|3[01])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #regex #days
ADD COMMENT
Topic
Name
6+2 =