Skip to content

Instantly share code, notes, and snippets.

@rjshekar90
Created March 17, 2017 15:56
Show Gist options
  • Save rjshekar90/29b21cfdbe755c93aa64de3d4246e566 to your computer and use it in GitHub Desktop.
Save rjshekar90/29b21cfdbe755c93aa64de3d4246e566 to your computer and use it in GitHub Desktop.
import re
for i in range(int(raw_input())):
try:
if re.compile(raw_input()): print True
except:
print False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment