easy way to remove nonprintable chars from string

Don Hiatt donhiatt at acm.org
Thu Jul 24 15:38:25 EDT 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