This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tim.peters
Recipients ezio.melotti, ghi5107, mrabarnett, serhiy.storchaka, taleinat, tim.peters
Date 2018-07-28.22:25:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1532816748.06.0.56676864532.issue33113@psf.upfronthosting.co.za>
In-reply-to
Content
Note:  if you found a regexp like this _in_ the Python distribution, then a bug report would be appropriate.  It's certainly possible to write regexps that can suffer catastrophic backtracking, and we've repaired a few of those, over the years, that shipped with Python.

But we can't stop you from writing such things yourself.  If you post your regexp to, e.g., comp.lang.python or StackOverflow, I'm sure someone will show you how to rewrite it in a safe way.  But be prepared to explain in English what you're trying to accomplish with it.

For example, while it appears you're trying to ensure there are at least 3 characters (of the right kind) between "|" separators, for some reason you made matching "|" optional.  That leaves open an exponential number of ways to try to match long strings of non-"|" characters between "|" separators.
History
Date User Action Args
2018-07-28 22:25:48tim.peterssetrecipients: + tim.peters, taleinat, ezio.melotti, mrabarnett, serhiy.storchaka, ghi5107
2018-07-28 22:25:48tim.peterssetmessageid: <1532816748.06.0.56676864532.issue33113@psf.upfronthosting.co.za>
2018-07-28 22:25:48tim.peterslinkissue33113 messages
2018-07-28 22:25:47tim.peterscreate