2023-12-09 21:52:30 +01:00
|
|
|
import re
|
|
|
|
|
|
|
|
def pies_reg(file_path):
|
|
|
|
with open(file_path, 'r', encoding='utf-8') as file:
|
|
|
|
for line in file:
|
|
|
|
if (re.search("(^|\s)pies($|\s)", line, re.IGNORECASE)):
|
2023-12-11 14:00:27 +01:00
|
|
|
print(line.strip())
|
2023-12-09 21:52:30 +01:00
|
|
|
|
|
|
|
|
|
|
|
file_path = 'TaskD02\simple.in'
|
|
|
|
pies_reg(file_path)
|