Advertisement
Guest User

Untitled

a guest
Aug 12th, 2017
451
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. #searches left and right of the @ sign to get email , stops at spaces
  2. import re
  3. test = 'Not really sure how this works quite yet, lets try charlie.cox.12@gmail.com and see if it works'
  4. email = re.search(r'[\w\.-]+@[\w\.-]+', test)
  5. print email.group(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement