Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: date replace

by bichonfrise74 (Vicar)
on Dec 11, 2009 at 06:08 UTC ( #812330=note: print w/ replies, xml ) Need Help??


in reply to date replace

Is this what you want?

#!/usr/bin/perl use strict; while (<DATA>) { s/\d\d(.*)/$1/ if /\d{8}/; print; } __DATA__ 20070820 070223 20080929


Comment on Re: date replace
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2014-07-11 00:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (217 votes), past polls