Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Regular expression for date

by Grey Fox (Chaplain)
on Aug 25, 2008 at 13:02 UTC ( [id://706682]=note: print w/replies, xml ) Need Help??


in reply to Regular expression for date

I have found http://www.regular-expressions.info/quickstart.html very helpful working with regex's. Lots of good examples. Such as
(19|20)\d\d[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])
for matching dates ie. yyyy-mm-dd.
-- Grey Fox
"We are grey. We stand between the darkness and the light" B5

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-25 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found