in reply to Common regex for timedate

"I need a common regex which matches both the lines"

Hi, no you don't, you need a datetime parser. See DateTime::Format::Strptime or Time::Piece (latter in core Perl).

Hope this helps!


The way forward always starts with a minimal test.