You are viewing a single comment's thread. Return to all comments →
Doesn't work under Python 3. It only works under pypy 3
from re import compile T = int(input()) for _ in range(T): try: r = compile(input()) print(True) except: print(False)
Seems like cookies are disabled on this browser, please enable them to open this website
Incorrect Regex
You are viewing a single comment's thread. Return to all comments →
Doesn't work under Python 3. It only works under pypy 3