On 13 Apr 2006 12:32:56 -0700, thunderfoot at gmail.com <thunderfoot at gmail.com> wrote: > re.sub() doesn't do the substitution in place: it returns the resulting > string. Try this: In-place substitution is impossible in Python, strings are immutable.