easy way to remove nonprintable chars from string

Don Hiatt donhiatt at acm.org
Thu Jul 24 21:38:25 CEST 2003


Greetings,

Is there an easy way to remove multiple non-printable
(e.g. "not strings.printable") from a string? Perhaps
something like foo.replace(list_of_nonprintables, '')
if it only existed? :-)

Cheers,

don




More information about the Python-list mailing list