[issue27800] Regular expressions with multiple repeat codes

R. David Murray report at bugs.python.org
Fri Aug 19 11:03:59 EDT 2016


R. David Murray added the comment:

It seems perfectly logical and consistent to me.  {4} is a repeat count, as is *.  You get the same error if you do 'a?*', and the same bypass if you do '(a?)*' (though I haven't tested if that does anything useful :).  You don't need the ?:, as far as I can tell, you just need to have the * modifying a group, making the group the "preceding regular expression".

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27800>
_______________________________________


More information about the Python-bugs-list mailing list