QuestionQ62

VerifiedRegular Expressions

Which regular expression matches all date-time stamps in log files using the format shown below?

Question Image

Explanation

The timestamp format is a three-letter weekday, three-letter month, one- or two-digit day of the month, and HH:MM:SS.mmm. The matching expression must therefore use \w{3} for each name, \d{1,2} for the day, two digits for each time field, and three digits after the decimal point.

Community Discussion

No comments yet. Be the first to start the discussion!