Serhiy Storchaka added the comment: The regular expression is used for performance. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue26302> _______________________________________