You are viewing a single comment's thread. Return to all comments →
import re n = int(input()) for _ in range(n): regex = input() try: re.compile(regex) print('True') except: print('False')
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Incorrect Regex
You are viewing a single comment's thread. Return to all comments →