forked from miczar1/djfz-24_25
task2, added case with dot
This commit is contained in:
parent
a7892ad185
commit
b718541d69
@ -2,7 +2,7 @@ import regex as re
|
|||||||
|
|
||||||
with open('polish_wiki_excerpt.in', encoding='utf8') as file:
|
with open('polish_wiki_excerpt.in', encoding='utf8') as file:
|
||||||
lines = file.readlines()
|
lines = file.readlines()
|
||||||
pattern = r'( |[Pp])ies(( \w+)|$)'
|
pattern = r'( |[Pp])ies(( \w+)|(\.$))'
|
||||||
for line in lines:
|
for line in lines:
|
||||||
line = line.strip()
|
line = line.strip()
|
||||||
x = re.search(pattern, line)
|
x = re.search(pattern, line)
|
||||||
|
Loading…
Reference in New Issue
Block a user