Issues with Python 2.2. regex

Jürgen Hermann jh at web.de
Thu Dec 20 16:43:03 EST 2001


Hi!

Are there any known changes/problems with named groups in Python 2.2 re?

Given this:

(?P<heading>^\s*(?P<hmarker>=+)\s.*\s(?P=hmarker) $)

Python 2.2 reports groups for the nested named parens, while previous
versions do not. If this is unexpected, I'll isolate this effect in a little
script.

Bye, Jürgen





More information about the Python-list mailing list