Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: regex: extract multiple number of date patterns from certain lines

by Random_Walk (Prior)
on Mar 04, 2009 at 16:12 UTC ( #748219=note: print w/replies, xml ) Need Help??


in reply to Re: regex: extract multiple number of date patterns from certain lines
in thread regex: extract multiple number of date patterns from certain lines

all the date values from the line, preferably each as a separate element of the array and in the same order they occurred on the line

2009-02-02 06:12:57,500 dates processed: 2009-01-31, 2009-01-29, 2009- +01-30 @res = (2009-02-02, 2009-01-31, 2009-01-29, 2009-01-30) 2009-02-18 06:03:47,713 dates processed: 2009-02-16, 2009-02-17 @res = (2009-02-18, 2009-02-16, 2009-02-17) 2009-02-19 05:58:29,138 dates processed: 2009-02-18 @res = (2009-02-19, 2009-02-18)

Cheers,
R.

Pereant, qui ante nos nostra dixerunt!
  • Comment on Re^2: regex: extract multiple number of date patterns from certain lines
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://748219]
help
Chatterbox?
[stevieb]: Corion: the problem with that is the 2.36 represents the underlying C library I've wrapped, which is why I want to use incrementals after the real version number. I've emailed modules@ to see if they can expedite the process for me...
[stevieb]: ...as normally, it takes three days to delete, in case you want to change your mind

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (12)
As of 2017-01-19 15:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (170 votes). Check out past polls.