Serhiy Storchaka added the comment:

This is a well known issue called catastrophic backtracking. It can't be solved 
with the current implementation of the regular expression engine. The best you 
can rewrite your regular expression. Even replacing "(.|\s)" with just "." can 
help.

----------
nosy: +serhiy.storchaka
resolution:  -> wont fix
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29977>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to