Mark Dickinson added the comment:
This is a known issue: there are a good few duplicates in the tracker. Issue
#1662581 is one, for example.
In this particular case, you can probably fix things by tightening up your
regex. Part of the problem is that '.*' is going to match any sequence of
c
Serhiy Storchaka added the comment:
There is no a Python bug.
You have wrong regexp. Remove "$" at the end or add ".*" before "$".
And it would be better if instead of '(?P.*?)\s' and
'"(?P.*?)"' you use '(?P\S+)\s' and '"(?P[^"]*)"'.
--
nosy: +serhiy.storchaka
resolution: -> invali
New submission from Sebastien Estienne:
Hello
re.match is blocked and takes 100% cpu forever
re_bug.py is an example of the bug.
thanx
--
components: Regular Expressions
files: re_bug.py
messages: 175109
nosy: Sebastien.Estienne, ezio.melotti, mrabarnett
priority: normal
severity: nor