english punctuation rules code example
Example: can you edit string.punctuation
>>> from string import punctuation
>>> from re import sub
>>>
>>> string = "\Fred-Daniels!"
>>> translator = str.maketrans('','', sub('\-', '', punctuation))
>>> string
'\\Fred-Daniels!'
>>> string = string.translate(translator)
>>> string
'Fred-Daniels'