0 votes
in Python by
Write A Reg Expression That Confirms An Email Id Using The Python Reg Expression Module “Re”?

1 Answer

0 votes
by

Python has a regular expression module “re.”

Check out the “re” expression that can check the email id for .com and .co.in subdomain.

import re

print(re.search(r"[0-9a-zA-Z.]+@[a-zA-Z]+\.(com|co\.in)$","[email protected]"))

Related questions

0 votes
asked Feb 11, 2020 in Python by rahuljain1
0 votes
asked Aug 29, 2020 in Python by Robindeniel
...