Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

finding email id from string python

import re

my_str = "Hi my name is John and email address is john.doe@somecompany.co.uk and my friend's email is jane_doe124@gmail.com"
emails = re.findall("([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+)", my_str)

for mail in an email:
print(mail)
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #finding #email #id #string #python
ADD COMMENT
Topic
Name
9+7 =