Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

regex find email address in string python

import re
x = 'Imagine this is the email address: 6775.love@everywhere.com'
y = re.findall('S+@S+', x)
# according to the expression it will look for a string with @ sign
# and which starts and end with a space
print(y)            # Output: ['6775.love@everywhere.com']
Source by www.py4e.com #
 
PREVIOUS NEXT
Tagged: #regex #find #email #address #string #python
ADD COMMENT
Topic
Name
8+8 =