Advertisement
Nenogzar

Untitled

Oct 28th, 2023
601
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. import re
  2.  
  3.  
  4. spisak = open("split.txt")
  5. for line in spisak:
  6.     pattern = r'\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,7}\b'
  7.     found = re.findall(pattern, line)
  8.     for email in found:
  9.         print(email)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement