Is there a maximum length of a regular expression in python?

Paul Rubin http
Fri Jan 20 21:18:05 EST 2006


Steve Holden <steve at holdenweb.com> writes:
> > Does no one care about an internal error in the regular expression
> > engine?
> >
> Not one that requires parsing a 100 kilobyte re that should be
> replaced by something more sensible, no.

If the internal error means the re engine bumped into some internal
limit and gracefully raised an exception, then fine.  If "internal
error" means the re engine unexpectedly got into some inconsistent
internal state, then threw up its hands and barfed after discovering
the error sometime later, that's bad.  Does nobody care which it is?



More information about the Python-list mailing list