collinsanele

Regex For Emails In A Text In Python

Jan 9th, 2020
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.07 KB | None | 0 0
  1. import re
  2. email = re.findall(r'[\w\.-]+@[\w\.-]+', str_containing_email)
Advertisement
Add Comment
Please, Sign In to add comment