I have text file with the following content:
Hi, my name is 'James'. What is your [name]
I wont to remove the ' ' and the [] from the text so the output looks like this:
Hi, my name is James. What is your name
Here is my code:
s= Hi, my name is 'James'. What is your [name]
s=s.replace("[","")
s=s.replace("'","")
However the output leave a bracket to the right of name:
Hi, my name is James. What is your name]
Any ideas?