a guest Aug 12th, 2017 128 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- #searches left and right of the @ sign to get email , stops at spaces
- import re
- test = 'Not really sure how this works quite yet, lets try email@example.com and see if it works'
- email = re.search(r'[\w\.-]+@[\w\.-]+', test)
- print email.group(0)
RAW Paste Data