Try it out on these example inputs:

back to RegexSwap.

Day number (01-31)

Regular expression:

^(((0|1|2)[1-9])|(3[0-1]))$

Categories:

Popularity:

You need to be logged in to cast votes on regexes.

Good
0
Bad
0

Author description and comments (0)

Topic by
kasper

2009-01-06
11:23

Description

Defines a day number between 01 and 31. Useful for composition with other regexes for custom date masks and the like.

You need to be logged in to participate

In order to post your own comments on this regex, you need to be logged in.

Username:

Log in by clicking the login link at the top of the screen