9 lines
230 B
Python
9 lines
230 B
Python
import regex as re
|
|
|
|
with open('shakespeare.in', encoding='utf8') as file:
|
|
lines = file.readlines()
|
|
for line in lines:
|
|
line = line.strip()
|
|
x = re.search(r'Hamlet', line)
|
|
if x:
|
|
print(line) |