Answers for "python check email format in string"

0

finding email id from string python

import re

my_str = "Hi my name is John and email address is [email protected] and my friend's email is [email protected]"
emails = re.findall("([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+)", my_str)

for mail in an email:
print(mail)
Posted by: Guest on April-08-2021
1

validate email python

email = input("Email to be validated: ")
accepted_emails = [[email protected], [email protected]]
if email in accepted_emails:
  print("Email accepted")
Posted by: Guest on October-19-2021

Code answers related to "python check email format in string"

Python Answers by Framework

Browse Popular Code Answers by Language