New submission from Maurice de Rooij :
Regular expressions with 0 to 65536 repetitions and above makes Python crash
with a "OverflowError: regular expression code size limit exceeded" exception.
65535 repetitions do not raise this issue.
Tested and confirmed this with versions 2.7.1
Maurice de Rooij added the comment:
So if I understand correctly, the maximum of 65535 repetitions is by design?
Have tried a workaround by repeating the repetitions by placing it inside a
capturing group, which is perfectly legal with Perl regular expressions:
$mystring = "test