patch for re.sub bug, by AMK.
3 files changed