[issue5020] Regex Expression Error

Amaury Forgeot d'Arc report at bugs.python.org
Wed Jan 21 10:03:03 CET 2009


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

> the program crash
Well, it's not a crash, but a graceful exception:
    sre_constants.error: bad character range

Your regular expression is invalid: the '-' has a special meaning inside
square brackets.
Please consult the documentation: http://docs.python.org/library/re.html

----------
nosy: +amaury.forgeotdarc
resolution:  -> invalid
status: open -> closed

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


More information about the Python-bugs-list mailing list