Back to problems

Parse Email Addresses from a Log String

Algorithm · Microsoft · Hard

Requirements Implement a parser that receives one potentially very large string. The input contains records separated by ;, and each record describes an email address that may include any of the following: A display name before the address, such as "John Doe" . Comments enclosed in parentheses, which may appear anywhere, such as john(work)@example.com or (internal) john@example.com. Quoted text containing literal semicolons. A semicolon inside quoted text must not split the…

Checking your access…