Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Regexp for date

by nefigah (Monk)
on Mar 25, 2008 at 04:08 UTC ( #676040=note: print w/ replies, xml ) Need Help??


in reply to Regexp for date

If you just need a quick regex for matching some uncertainly-delimited numeric dates out of a file or something, (and I take it you are not super familiar with regular expressions) check out: http://www.regular-expressions.info/dates.html

(Btw, that example matches valid dates. I can't really think of why you wouldn't want them to be valid, since someone else is already writing the expression for you :) )

Note that that site also has some other useful info about regular expressions.

If you are doing anything beyond some very basic matching, definitely go after the Date:: modules as mentioned above!


I'm a peripheral visionary... I can see into the future, but just way off to the side.


Comment on Re: Regexp for date

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2015-07-08 01:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls