Yandex interview question

Implement a parser for emails and urls