[docs] [issue28450] Misleading/inaccurate documentation about unknown escape sequences in regular expressions
Serhiy Storchaka
report at bugs.python.org
Tue Nov 22 14:28:56 EST 2016
Serhiy Storchaka added the comment:
The reason for disallowing some undefined escapes is the same as in pattern strings: this would allow as to introduce new special escape sequences. For example:
* \N{...} for named character escape.
* Perl and extended PCRE use \L and \U for making lower and upper casing of the replacement. \U is already used for other purpose, but you have an idea.
Of course the need in new special escape sequences in template string is much less then in pattern string.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28450>
_______________________________________
More information about the docs
mailing list