Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

# 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 myemail@gmail.com."
import re
re.findall(r"([w.-]+@[w.-]+)", Text)

output:
['myemail@gmail.com.']
 
PREVIOUS NEXT
Tagged: #extract #email #ID #text #regex
ADD COMMENT
Topic
Name
3+6 =