I have an array of characters that I want to remove from a string:
stops = ["[", "]", "^", "(", ")", "#", "*", "?", "~"]
I want to be able to pass an array and remove all occurrences of these characters so that:
"str [with] unwanted# char*acters"
becomes
"str with unwanted characters"
source share