open_in_new
content_copy
import re s = "string. With. Punctuation?" s = re.sub(r'[^\w\s]','',s)