Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

extract email address using expression in django

import re
s = 'Hello from shubhamg199630@gmail.com to priya@yahoo.com about the meeting @2PM'
  
# S matches any non-whitespace character 
# @ for as in the Email 
# + for Repeats a character one or more times 
lst = re.findall('S+@S+', s)
print(lst)
#['shubhamg199630@gmail.com', 'priya@yahoo.com']
Comment

PREVIOUS NEXT
Code Example
Python :: python offline translate pypi 
Python :: disable close button in tkinter 
Python :: python import timezone 
Python :: How to rotate the 2D vector by degree in Python: 
Python :: how to convert dataframe to text 
Python :: Game of Piles Version 2 codechef solution 
Python :: Write a Python program to sum all the items in a dictionary. 
Python :: print first word of a string python and return it 
Python :: How to create role discord.py 
Python :: python password checker 
Python :: How to Merge train and Test dataset in python 
Python :: dataframe to dictionary using index as key 
Python :: python subtract list from list 
Python :: stack concatenate dataframe 
Python :: how to concatenate a string with int in python 
Python :: python get the app path 
Python :: time.strftime("%H:%M:%S") in python 
Python :: downsample image opencv 
Python :: compare dates python 
Python :: python print without new lines 
Python :: python last n list elements 
Python :: np.select with multiple conditions 
Python :: split by several characters python 
Python :: handwriting python 
Python :: sklearn predict threshold 
Python :: flask error handling 
Python :: python timer() 
Python :: python program to find numbers divisible by another number 
Python :: print random integers 
Python :: import all csv python 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =