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 -- http://mail.python.org/mailman/listinfo/python-list