Éric Araujo added the comment: Using a multiline regex (with re.VERBOSE) would also avoid the clutter of parens and quotes. ---------- nosy: +eric.araujo _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue20491> _______________________________________