Python has a regular expression module re
. See expressions that can .com
the email IDs of and subdomains .re
import re
print(re.search(r"[0-9a-zA-Z.]+@[a-zA-Z]+\.(com|co\.in)$","coding180@gmail.com"))
robort - 2022-08-30 09:54:15
Python has a regular expression module re
. See expressions that can .com
the email IDs of and subdomains .re
import re
print(re.search(r"[0-9a-zA-Z.]+@[a-zA-Z]+\.(com|co\.in)$","coding180@gmail.com"))
Top Interviews