testre
huuductu
python
10/28/2022 1:18 AM
268 B
19
Indexable
import re
fileName = input()
myre=re.compile(r"^(\w+)(\.\w+)*@(\w+)((\.\w+)+)$")
file=open(fileName, 'r')
for line in file:
t = myre.findall(line)
if t:
print(line)
Editor is loading...