Advertisement
Guest User

RE (find an emails)

a guest
Feb 13th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.58 KB | None | 0 0
  1. import re
  2.  
  3. ourtext = str("Ross,    201977785,  luctus.aliquet@vulputateposuerevulputate.co.uk,"\
  4. "Colette,   2019,   euismod.est.arcu@Aenean.net," \
  5. "Fuller,    2020,   interdum.ligula@luctusCurabituregestas.net," \
  6. "Burke,     2018,   porttitor.tellus.non@perinceptoshymenaeos.com," \
  7. "Hammett,   2019,   elementum.lorem.ut@ligulaNullam.org," \
  8. "Dai,   20181111,   Nulla.tincidunt.neque@enimnislelementum.com"  )
  9.  
  10. textlookfor = r"[\w\.+]+@[A-Za-z-]+\.[\w.]+"
  11. allresults = re.findall(textlookfor, ourtext)
  12.  
  13. for items in allresults:
  14.    print (items)
  15.    
  16. print ("\nTotal: " + str(len(allresults)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement