Python 2.6 re.sub does not support flags argument