Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python2
- import sys
- import re
- pattern = re.compile('^(0{0,1}[0-9]{2} [0-9]-[0-9]{3}-[0-9]{3})$')
- for line in sys.stdin:
- result = pattern.match(line.strip())
- if result:
- print "true"
- else:
- print "false"
Advertisement
Add Comment
Please, Sign In to add comment