I want to remove specific characters from a string. I am using the following code:
words = words.replace("[", "").replace("_", "").replace("[","").replace("]", "")\
.replace("(", "").replace("/", "")
This code works fine but it is a bit messy. I am wondering if there is a better way to do this?