testre
huuductu
python
3 years ago
199 B
4
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...
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)