We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Read the instructions thoroughly. It includes an example for the first step in parsing, using email.utils.parseaddr(). If that returns an email address, check its validity using re.match() with a regex as described in the instructions.
And then… Voilà ! You're done!
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Validating and Parsing Email Addresses
You are viewing a single comment's thread. Return to all comments →
Read the instructions thoroughly. It includes an example for the first step in parsing, using
email.utils.parseaddr()
. If that returns an email address, check its validity usingre.match()
with a regex as described in the instructions.And then… Voilà ! You're done!