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
Good $localtime ikegami++ sir,
I am actually dealing with an existing code base that uses POE::Wheel::FollowTail and checks each new log line against a list of pre-compiled regex patterns, hence the desire to do it in a single regex. When it finds a match it calls the forwarder method on the object that is associated with the matching pattern.
Among other refs passed to the forwarding object is one to a list of matches from the regex normally saving having to split it up all over again. I do get a second bite at the cherry in the objects forwarder method. It would have been nice though after matching all those dates if I could just pass them all through already separated.
Thanks for looking, at least I now know it is not me making a trivial error
Cheers,
R.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: regex: extract multiple number of date patterns from certain lines
by ikegami (Patriarch) on Mar 05, 2009 at 07:15 UTC | |
by Random_Walk (Prior) on Mar 05, 2009 at 20:58 UTC |