[issue27586] Is this a regular expression library bug?

Emanuel Barry report at bugs.python.org
Thu Jul 21 22:36:52 EDT 2016


Emanuel Barry added the comment:

For future reference, if your input can have arbitrary escapes, it might be a good idea to pass it through re.escape; it does proper escaping so that stuff like e.g. \g in your input will get treated as a literal backslash, followed by a literal 'g', and not an escape sequence.

----------
nosy: +ebarry
type: compile error -> behavior

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


More information about the Python-bugs-list mailing list