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

given your example input, what exactly should @res contain?
  • Comment on Re: regex: extract multiple number of date patterns from certain lines

Replies are listed 'Best First'.
Re^2: regex: extract multiple number of date patterns from certain lines
by Random_Walk (Prior) on Mar 04, 2009 at 16:12 UTC

    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!