You are viewing a single comment's thread. Return to all comments →
I managed to abuse the subscriptability of re.search:
import re s = input() rx = re.compile(r"([a-zA-Z0-9])(?=\1)") print(rx.search(s)[0] if rx.search(s) else -1)
Seems like cookies are disabled on this browser, please enable them to open this website
Group(), Groups() & Groupdict()
You are viewing a single comment's thread. Return to all comments →
I managed to abuse the subscriptability of re.search: