[New-bugs-announce] [issue30973] Regular expression "hangs" interpreter
T Trindad
report at bugs.python.org
Thu Jul 20 00:41:58 EDT 2017
New submission from T Trindad:
The following code "hangs" the interpreter:
import re
re.search(r"/\*\*((?:[^*]+|\*[^/])*)\*/", """ /** Copy Constructor **/
private EvaluationContext (EvaluationContext base) {""")
Changing the regex to r"/\*\*((?:[^*]|\*[^/])*)\*/" makes it work normally.
----------
components: Regular Expressions
messages: 298705
nosy: T Trindad, ezio.melotti, mrabarnett
priority: normal
severity: normal
status: open
title: Regular expression "hangs" interpreter
type: crash
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30973>
_______________________________________
More information about the New-bugs-announce
mailing list