Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Date Validation using just a regex

by Sidhekin (Priest)
on Jul 01, 2004 at 09:16 UTC ( [id://371019]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    /(?=\d{4}-\d\d-\d\d)             # Date format
     (?=.{8}(?:0[1-9]|[12]\d|3[01])) # Day 01-31
    ...
     (?![13579][048]00-02-29)        # -"-
     (?![02468][26]00-02-29)         # -"-
    /x
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://371019]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-19 12:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found