Fredrik Lundh wrote: > if you precompile the regexp, p.sub(text, "") is nearly as fast as the > translate method under 2.3. ymmv. mmmv, too. it's "p.sub("", text)", and it was a (different) flaw in my test script. if you want performance, use "translate". </F>