Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Regular expression for date

by Grey Fox (Chaplain)
on Aug 25, 2008 at 13:02 UTC ( #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? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2022-08-14 16:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?