Do you guys know how I'll be able to extract an email from a string using find()
info = "message [email protected]"
I want to be able to get the entire "[email protected]" and output only that to the screen.
Do you guys know how I'll be able to extract an email from a string using find()
info = "message [email protected]"
I want to be able to get the entire "[email protected]" and output only that to the screen.
You can do this by using regex:
import re
emails_list = re.findall('\S+@\S+', info)