zad2 poprawione, ies nie jest akceptowane

This commit is contained in:
LuminoX 2024-12-08 19:00:51 +01:00
parent b718541d69
commit 34e284c49e

View File

@ -2,7 +2,7 @@ import regex as re
with open('polish_wiki_excerpt.in', encoding='utf8') as file:
lines = file.readlines()
pattern = r'( |[Pp])ies(( \w+)|(\.$))'
pattern = r'(P|( p))ies(( \w+)|(\.$))'
for line in lines:
line = line.strip()
x = re.search(pattern, line)