Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Date Validation using just a regex

by Sidhekin (Priest)
on Jul 01, 2004 at 09:16 UTC ( #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? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2022-01-18 04:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (52 votes). Check out past polls.

    Notices?