|
|
От: |
s_aa
|
|
| Дата: | 13.05.25 05:56 | ||
| Оценка: | |||
import re
text = '12 ГКК-5-282(219), (что то тут есть)'
well_pattern = r'ГКК[\-\dА-Я]+(\(.+\))*?'
wells = list(re.finditer(well_pattern, text, re.MULTILINE))
for m in wells:
print(text[m.start():m.end()])