I am trying remove all punctuation except comma. I am doing the following
import re
st = "here comes, 'lot of', cover"
st = re.sub(r'[^\w\s],', '', st )
But it also removes the comma.
>Solution :
Try doing [^\w\s,].
Example: https://regexr.com/6iss3