Skip to content

Latest commit

 

History

History

incorrect-regex

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Incorrect Regex

https://www.hackerrank.com/challenges/incorrect-regex

Problem

You are given a string S.
Your task is to find out whether S is a valid regex or not.

Input Format

The first line contains integer T, the number of test cases. The next R lines contains the string S.

Output Format

Print "True" or "False" for each test case without quotes.

Sample Input 0

2
.*\+
.*+

Sample Output 0

True
False

My Solution