Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
639
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.16 KB | None | 0 0
  1. import re
  2.  
  3. test = '''
  4. € ]q (]q (X    q X!   4jett@buckeye-express.com:Joshua1q h h X    usaa: 1q h e]q (X    usaaq X!   4jett@buckeye-express.com:Joshua1q X    Sat, 28 Sep 2019 18:25:43q X,   Credit Karma <notifications@creditkarma.com>q  X1   Alert: USAA SVG BK payment reported to TransUnionq
  5. XW   Hi Monica,
  6.  
  7. It looks like a recent credit card payment was added to your TransUnion report.*
  8.  
  9. Here are the details:
  10.  
  11. - Creditor: USAA SVG BK
  12. - Credit limit: $1,000
  13.  
  14. Keeping your balances low compared to your limits is a great way to help your scores. Check in today to see how you're doing.
  15.  
  16. Best,
  17. The Credit Karma Team
  18.  
  19. *Based on your credit report information from Equifax as reported on 09/27/19.
  20.  
  21. You are receiving this email because you opted into Credit Monitoring, a completely free service. You can change your preferences in the Communications & Monitoring section of your Credit Karma profile.
  22.  
  23. This message was sent to 4jett@bex.net. To manage the kinds of emails you receive from Credit Karma, click here:
  24. '''
  25. test = test.encode('ascii', 'ignore')
  26. regex = re.compile(r'[a-zA-Z0-9].+?\@.+?\.\D{2,5}:.+')
  27. henlo = regex.search(test)
  28. print(henlo)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement