Issue 23066: re.match hang - Python tracker (original) (raw)

Issue23066

Created on 2014-12-16 15:28 by writalnaie, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg232746 - (view) Author: Jie Yin (writalnaie) Date: 2014-12-16 15:28
The following expression hang in 2.7.9 for the module re: re.match('^([a-zA-Z0-9]+|[\\s]+ [,.])+$', 'Feature Test Macro Requirements for glibc ()')
msg232747 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2014-12-16 15:43
Please go to python-list to get help about writing re expressions for parsing. The example regexp does not technically hang, it is just exploring a very large set of alternatives, none of which match (because the trailing '()' doesn't match anything).
History
Date User Action Args
2022-04-11 14:58:11 admin set github: 67255
2014-12-16 15:43:17 gvanrossum set status: open -> closednosy: + gvanrossummessages: + resolution: not a bug
2014-12-16 15:40:48 benjamin.peterson set nosy: + serhiy.storchaka
2014-12-16 15:28:28 writalnaie create