re module: Nothing to repeat, but no sre_constants.error: nothing to repeat ?
jeanpierreda at gmail.com
Tue Feb 14 16:53:38 CET 2012
On Tue, Feb 14, 2012 at 10:05 AM, Vlastimil Brom
<vlastimil.brom at gmail.com> wrote:
> However, is there any realistic usecase for repeated zero-width anchors?
Maybe. There is a repeated zero-width anchor is used in the Python re
test suite, which is what made me notice this. I assume that came from
some actual use-case. (see:
And yeah, even something as crazy as ()* works, but as soon as it
becomes (a*)* it doesn't work. Weird.
More information about the Python-list