# extract an email ID from the text using regex
# extract an email ID from the text using regex
Text = "This is the text which contains emails IDs . My email is [email protected]."
import re
re.findall(r"([\w.-]+@[\w.-]+)", Text)
output:
['[email protected].']