Backstory: Log analyzer using regular expression tutorial explains how I wrote a customized log analyzer for company specific tasks. It counts the number of error messages in the log. In sum, Regular expression is essential for this approach.
Why I picked this question: Find out the error messages and theirs frequency is common task at work places. The interviewer asks this question is to test whether you know the basic approach. Regular expression has good use here.