| 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 |
|
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.