You are viewing a single comment's thread. Return to all comments →
import re T = int(input()) while (T > 0): p = input() try: re.compile(p) print(True) except re.error: print(False) T -= 1
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 →
For some reason, this code is only working on Pypy3 platform