[issue22119] Some input chars (i.e. '++') break re.match
Matthew Barnett
report at bugs.python.org
Fri Aug 1 23:19:27 CEST 2014
Matthew Barnett added the comment:
In a regex, '+' is a metacharacter meaning "repeated one or more times".
"libstdc+" will match "libstd" followed by "c" repeated one or more times.
"libstdc++" will match "libstd" followed by "c" repeated one or more times, but then there's another "+", which it takes to mean that you want the repeat to be repeated, hence the exception.
'*' is also a metacharacter, this one meaning "repeated zero or more times".
In summary, not a bug.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22119>
_______________________________________
More information about the Python-bugs-list
mailing list