progs/catastrophic.py
author Christian Urban <urbanc@in.tum.de>
Tue, 23 Aug 2016 15:38:20 +0200
changeset 416 357c395ae838
parent 411 1aec0e1fda86
child 420 25bc57b32efa
permissions -rwxr-xr-x
updated

#!/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)