[issue30133] Strings that end with properly escaped backslashes cause error to be thrown in re.search/sub/etc. functions.

R. David Murray report at bugs.python.org
Fri Apr 21 17:51:01 EDT 2017


R. David Murray added the comment:

I think you are missing a re.escape around text.  Text is otherwise not a valid replacement pattern.

----------
nosy: +r.david.murray

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


More information about the Python-bugs-list mailing list