[issue13169] Regular expressions with 0 to 65536 repetitions and above makes Python crash

2011-10-13 Thread Maurice de Rooij
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

[issue13169] Regular expressions with 0 to 65536 repetitions raises OverflowError

2011-10-14 Thread Maurice de Rooij
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