Fredrik Lundh: > suggested exercise: benchmark re.sub with literal replacement, re.sub > with callback (lambda m: ""), repeated replace, and repeated use of the form ... > on representative data. Please, add the translate() solution too I have suggested :-) Bye, bearophile