regexp compilation error

Chris Angelico rosuav at gmail.com
Fri Sep 30 05:29:50 EDT 2011


On Fri, Sep 30, 2011 at 7:26 PM, Ovidiu Deac <ovidiudeac at gmail.com> wrote:
> $ python --version
> Python 2.6.6

Ah, I think I was misinterpreting the traceback. You do actually have
a useful message there; it's the same error that my Py3.2 produced:

sre_constants.error: nothing to repeat

I'm not sure what your regex is trying to do, but the problem seems to
be connected with the * at the end of the pattern.

ChrisA



More information about the Python-list mailing list