[Python-Dev] Re: hierarchicial named groups extension to the re library

Fredrik Lundh fredrik at pythonware.com
Sat Apr 9 01:37:20 CEST 2005

<ottrey at py.redsoft.be> wrote:

> (ie. the re library only returns the ~last~ match for named groups - not
> a list of ~all~ the matches for the named groups.  And the hierarchy of
 those named groups is non-existant in the flat dictionary of matches
> that results. )

are you 100% sure that this can be implemented on top of other RE
engines (CPython isn't the only Python implementation out there).

(generally speaking, trying to turn an RE engine into a parser is a lousy
idea.  the library would benefit more from a simple parser toolkit than
it benefits from more non-standard and highly specialized RE hacks...)


More information about the Python-Dev mailing list