Search
 
SCRIPT & CODE EXAMPLE
 

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.']
Comment

PREVIOUS NEXT
Code Example
Python :: suppress python vs try/except 
Python :: combination of 1 2 3 4 5 python 
Python :: how to append items to a list in python 
Python :: python find index of first matching element in a list 
Python :: django now template tag 
Python :: python is folder or file 
Python :: python read and write pdf data 
Python :: discord get bot profile picture 
Python :: python find difference between lists 
Python :: sort dictionary by value and then key python 
Python :: how to change index date format pandas 
Python :: python isinstance list 
Python :: finding path of a module in python 
Python :: dropna threshold 
Python :: float infinity python 
Python :: selenium save webpage as pdf python 
Python :: python dictionary default 
Python :: underscore in python 
Python :: python 3.7 download for windows 7 32-bit 
Python :: dtype in pandas 
Python :: python pow 
Python :: jupyter tabnine for jupyter notebook 
Python :: deep copy a dataframe 
Python :: set xlim histogram python 
Python :: how to install ffmpeg python heroku 
Python :: python append value to dictionary list 
Python :: get requests python 
Python :: how to play and stop music python 
Python :: regex remove all html tags except br python 
Python :: run python script every hour 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =