diff -r 3e1b8266ea65 -r 1aec0e1fda86 progs/catastrophic.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/progs/catastrophic.py Sun Aug 21 18:15:53 2016 +0200 @@ -0,0 +1,12 @@ +#!/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)