Дятлинко Екатерина Сергеевна, 530 группа RegexDump 133
Майоров Егор Андреевич, 527 группа RegexDump 495
f1import ref1import re
t2reg = input()t2regexp = input()
3while (expr := input()):3while (line := input()):
4    res = re.search(reg, expr)4    found = re.search(regexp, line)
5    if res:5    if found:
6        print(f'{res.start(0)}: {res.group()}')6        print(f'{found.start()}: {found.group()}')
7        for i, group in enumerate(res.groups()):7        for i, gr in enumerate(found.groups()):
8            if group:8            if gr:
9                print(f'{i + 1}/{res.start(i + 1)}: {group}')9                print(f'{i + 1}/{found.start(i + 1)}: {gr}')
10        for name, group in res.groupdict().items():10        for i, x in found.groupdict().items():
11            if group:11            if x:
12                print(f'{name}/{res.start(name)}: {group}')12                print(f'{i}/{found.start(i)}: {x}')
13    else:13    else:
14        print('<NONE>')14        print('<NONE>')
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op