Categories

Dec 14, 2019 in Python

Q: Write A Reg Expression That Confirms An Email Id Using The Python Reg Expression Module “Re”?

1 Answer

Dec 14, 2019

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.][email protected][a-zA-Z]+\.(com|co\.in)$","[email protected]"))

Click here to read more about Python
Click here to read more about Insurance

Related questions

Madanswer
Feb 11 in Python
May 17 in Python
Jun 30 in Python
...