Possible Duplicate:
Python replace multiple strings
I am looking to replace “ “, “\r”, “\n”, “<”, “>”, “’” (single quote), and ‘”’ (double quote) with “” (empty). I’m also looking to replace “;” and “|” with “,”.
Would this be handled by re.search since I want to be able to search anywhere in the text, or would I use re.sub.
What would be the best way to handle this? I have found bits and pieces, but not where multiple regexes are handled.
 
     
     
     
    