Cleaning up a string

James Stroud jstroud at
Tue Jul 24 23:31:34 CEST 2007

Peter Otten wrote:
> unicode.translate() supports this kind of replacement...

> and re.compile(...).sub() accepts a function:

Thanks Peter!

James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095

More information about the Python-list mailing list