Advertisement
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 charlie.cox.12@gmail.com and see if it works'
- email = re.search(r'[\w\.-]+@[\w\.-]+', test)
- print email.group(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement