I personally think that the proposed functionality should *not* live in a separate module, but somehow be integrated into SRE.
+1.
Whether or not the proposed functionality is useful in the first place, I don't know. I never have nested named groups in my regular expressions.
Neither have I, but only because it doesn't do what re2 does. :)
I'd like to suggest that the addition also allow you to match a group by a named reference, thus allowing a complete grammar to be formed. Of course, I don't know if the underlying regular expression engine could actually do that, but it would be nice if it could, since it would allow simple grammars to be more easily parsed without recourse to a more complex parsing module.
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com