0 votes
in Python by

Write a reg articulation that affirms an email id utilizing the Python Language reg articulation module "re"? 

1 Answer

0 votes
by

Python Language has a standard articulation module "re." 

Look at the "re" articulation that can browse 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)$","micheal.pages@mp.com")) 

...