Answers for "get email address from string python"

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
0

find email address pytho

import re
line = "should we use regex more often? let me know at  [email protected]"
match = re.search(r'[w.-]+@[w.-]+', line)
match.group(0)
'[email protected]'
Posted by: Guest on April-16-2020

Code answers related to "get email address from string python"

Python Answers by Framework

Browse Popular Code Answers by Language