New submission from Jussi Pakkanen: Attached is a script that runs a single regex against one line of text taking over 12 seconds.
If you run the exact same regex in Perl it finishes immediately. The slowness has something to do with spaces. If you replace consecutive spaces in the input with one, the evaluation is immediate. This bug was originally discovered here: https://bugzilla.gnome.org/show_bug.cgi?id=781569 ---------- components: Regular Expressions files: retest.py messages: 292181 nosy: ezio.melotti, jpakkane, mrabarnett priority: normal severity: normal status: open title: Pathological regex behaviour type: resource usage Added file: http://bugs.python.org/file46828/retest.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30148> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com