How can I replace these characters in Python2.7 with comma:
|
•
something like this does not work:
a= b.replace("|", ",")
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use Regular expression which contains list of characters to be replaced
SYNTAX:
This method replace all occurrences of the RE pattern in string with repl, substituting all occurrences unless max provided.
EDIT
You have to declare at the top of source file that it uses Unicode literals.
Also prefix string being searched with u