jmpark0118 / CODING_TEST_PRACTICE

0 stars 0 forks source link

Practice>Python>Errors and Exceptions>Incorrect Regex #86

Open jmpark0118 opened 3 years ago

jmpark0118 commented 3 years ago

image

출처 : https://www.hackerrank.com/challenges/incorrect-regex/problem

jmpark0118 commented 3 years ago

import re

if __name__ == '__main__':
    for _ in range(int(input())):
        try:
            re.compile(input())
            print('True')
        except:
            print('False')