RegexDump/Tyapkins
RegexDump/alexeykaz
n1import ren1from re import search
22
n3reqex = input()n3regex = input()
4word = input()4string = input()
5while (word):5while string:
6    result = re.search(reqex, word)6    found = search(regex, string)
7    if (result):7    if found:
8        print("{0}: {1}".format(result.start(), result.group()))8        print("{}: {}".format(found.start(), found.group()))
9        for j, i in enumerate((result.groups())):9        for j, i in enumerate(found.groups()):
10            if (i):10            if i:
11                print("{0}/{1}: {2}".format(j+1, result.start(j+1), i))11                print("{}/{}: {}".format(j + 1, found.start(j + 1), i))
12        gronamed = result.groupdict()12        named_groups = found.groupdict()
13        for i in (gronamed):13        for i in named_groups:
14            if gronamed[i]:14            if named_groups[i]:
15                print("{0}/{1}: {2}".format(i, result.start(i), gronamed[i]))15                print("{}/{}: {}".format(i, found.start(i), named_groups[i]))
16    else:16    else:
17        print("<NONE>")17        print("<NONE>")
t18    word = input()t18    string = input()
1919
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op