djfz-2023-s473575/TaskD02/run.py

8 lines
156 B
Python
Raw Normal View History

2023-11-26 12:43:45 +01:00
import re
import sys
for line in sys.stdin:
stripped_line = line.strip()
if re.search(r"\bpies\b", stripped_line, re.IGNORECASE):
print(stripped_line)