Amaury Forgeot d'Arc added the comment: Aha, I always thought that \Z was an alias for $. __________________________________ Tracker <report at bugs.python.org> <http://bugs.python.org/issue1761> __________________________________