Raw string substitution problem

Alan G Isaac alan.isaac at gmail.com
Fri Dec 18 12:59:38 EST 2009


On 12/18/2009 12:17 PM, MRAB wrote:
> In simple cases you might be replacing with the same string every time,
> but other cases you might want the replacement to contain substrings
> captured by the regex.


Of course that "conversion" is needed in the replacement.
But e.g. Vim substitutions handle this fine without the
odd (to non perlers) handling of backslashes in replacement.

Alan Isaac




More information about the Python-list mailing list