group 0 in the re module

Yingjie Lan lanyjie at yahoo.com
Tue Dec 7 22:24:59 EST 2010


: Use \g<0>.


Thanks! 

Though I wish all \1, \2, ..., should also be forbidden.
Such a mixture of things looks like a patch work.

No offense meant.

Yingjie



      



More information about the Python-list mailing list