Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by Random_Walk (Parson)
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2014-09-18 23:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (126 votes), past polls