Do you want to know the information about “finding email id from string python”. If yes, you’re in the correct tutorial.
finding email id from string python
import re my_str = "Hi my name is John and email address is email@example.com and my friend's email is firstname.lastname@example.org" emails = re.findall("([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+)", my_str) for mail in an email: print(mail)
I hope this article helps you to know about “finding email id from string python”. If you have any questions regarding this article please let us know via the comment section. Share this post with your friends & family via social networks.