more than 100 capturing groups in a regex

Iain King iainking at
Wed Oct 26 10:15:53 CEST 2005

Fredrik Lundh wrote:
> Iain King wrote:
> > Anyway, back to the OP: in this specific case, the cap of 100 groups in
> > a RE seems random to me, so I think the rule applies.
> perhaps in the "indistinguishable from magic" sense.
> if you want to know why 100 is a reasonable and non-random choice, I
> suggest checking the RE documentation for "99 groups" and the special
> meaning of group 0.
> </F>

Ah, doh!  Of course.  Oh well then...  still, doesn't python's RE
engine support named groups?  That would be cumbersome, but would allow
you to go above 100...

More information about the Python-list mailing list