Gregory P. Smith <greg at krypto.org> added the comment: changing the '$' to \Z(?ms)' fixes the problem. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue6665> _______________________________________