m/(?:Pending=)(\d{6})$/ # If you want the number after 'Pending'. m|\s(\d\d:)+(\d){2}\.(\d){3}\s| # To match the time stamp.