a guest Aug 12th, 2017 65 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 firstname.lastname@example.org and see if it works'
- email = re.search(r'[\w\.-]+@[\w\.-]+', test)
- print email.group(0)
RAW Paste Data