[issue19994] re.match does not return or takes long time

Taesu Pyo report at bugs.python.org
Mon Dec 16 10:16:04 CET 2013


New submission from Taesu Pyo:

// code sampe:

import re

r = (r'(/.*)*X')
s = '////////////////////////////'

print re.match(r, s)
print list(re.finditer(r, s))
print re.findall(r, s)

// it does not return or takes long time depends on length of 's'

----------
components: Regular Expressions
messages: 206283
nosy: Taesu.Pyo, ezio.melotti, mrabarnett
priority: normal
severity: normal
status: open
title: re.match does not return or takes long time
type: behavior
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19994>
_______________________________________


More information about the Python-bugs-list mailing list