SHARE
TWEET

Untitled

a guest Aug 12th, 2017 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
Top