In my text, I have special characters such as em dashes and guillemets (pointed quotation marks) which are not removed by omitting string.punctuation
What is the correct way to remove this type of punctuation from strings in Python 3?
import string
mystring = ' »De fleste – digitale –'
mystring.translate(str.maketrans('', '', string.punctuation))
' »De fleste – digitale –'