What is the Pythonic way to remove specific chars from a string? The .translate( table[, deletechars]) method seems the most 'politically correct' and also the most complicated.
My ideas: 1. For each char to be removed, do a .replace( char_to_delete, '' ) 2. Do a .split( str_of_chars_to_delete ) followed by a ''.join() 3. Use a regular expression 4. Other? Thanks! Malcolm _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor