Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

finding email id from string python

import re

my_str = "Hi my name is John and email address is john.doe@somecompany.co.uk and my friend's email is jane_doe124@gmail.com"
emails = re.findall("([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+)", my_str)

for mail in an email:
print(mail)
Comment

PREVIOUS NEXT
Code Example
Python :: export data csv python 
Python :: how to find the longest string in a list in python 
Python :: pandas read_csv ignore first column 
Python :: how to make downloadable file in flask 
Python :: min max scaler sklearn 
Python :: python removing from string 
Python :: open link from python 
Python :: how to take list of integer as input in python 
Python :: numpy array to torch tensor 
Python :: horizontal bar chart with seaborn 
Python :: python sort a list of tuples 
Python :: how to select all but last columns in python 
Python :: pdb set trace 
Python :: database default code in settings django 
Python :: for loop in df rows 
Python :: python read csv line by line 
Python :: get longest shortest word in list python 
Python :: The virtual environment was not created successfully because ensurepip is not available. On Debian/Ubuntu systems, you need to install the python3-venv package using the following command. 
Python :: autoslugfield django 3 
Python :: falsy python 
Python :: how to open any application using python 
Python :: import scipy python 
Python :: python program to shutdown computer when user is not present 
Python :: python remove cached package 
Python :: wait until clickable selenium python 
Python :: discord.py clear command 
Python :: python get newest file in directory 
Python :: seaborn rotate xlabels 
Python :: python roman to integer 
Python :: complex phase python 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =