progs/catastrophic.py
author Christian Urban <urbanc@in.tum.de>
Mon, 22 Aug 2016 09:14:22 +0200
changeset 413 b7221df9662a
parent 411 1aec0e1fda86
child 420 25bc57b32efa
permissions -rwxr-xr-x
removed

#!/usr/bin/env python
import re
import sys

cn = sys.argv[1]

r1 = '((a?){%s})' % cn
r2 = 'a{%s}' % cn

m = re.match(r1 + r2 , "a" * int(cn)) 

print m.group(0)