Challenge - #48 - Incorrect Regex

 # Enter your code here. Read input from STDIN. Print output to STDOUT

import re
for i in range(int(input())):
    try :
        re.compile(input())
        print(True)
    except :
        print(False)

Comments

Popular posts from this blog

Challenge - #43 - Time Delta