more than 100 capturing groups in a regex

André Malo auch-ich-m at g-kein-spam.com
Wed Oct 26 04:26:45 EDT 2005


* "Iain King" <iainking at gmail.com> wrote:

> 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...

The named groups are built on top of numbered captures. They are mapped by the
parser and the match instance's group method. The regex matcher itself never
sees these names.

nd



More information about the Python-list mailing list