RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^((0?[1-9])|((1|2)[0-9])|30|31)$
Description
matches any day of month 0?1-31
Matches
01 | 12 | 31
Non-Matches
123 | 32 | abc
Author Rating: Not yet rated. Serafeim Zanikolas
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: Not very practical
Name: user
Date: 6/13/2005 6:09:25 PM
Comment:
Much cleaner & faster: if(0<=var && var<=31)


Title: uncompletely
Name: slm
Date: 1/6/2005 4:20:04 AM
Comment:
if i input 0 or 00,it couldn't check.


Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials