Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Reg expression on day

by flounder99 (Friar)
on Dec 23, 2003 at 17:59 UTC ( #316667=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    s!/0?(\d+)/!/$1/!
    
  2. or download this
    s!0?(\d+)/0?(\d+)!$1/$2!
    
  3. or download this
    use strict;
    for ('12/09/2003', '12/10/2003', '01/01/2004') {
    ...
    Before: 01/01/2004
    Leading zero off of day: 01/1/2004
    Leading zero off of month and day: 1/1/2004
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2022-05-19 16:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (72 votes). Check out past polls.

    Notices?