daily pastebin goal


a guest Aug 12th, 2017 367 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand