Remove punctuation from text

PHOTO EMBED

Sat Oct 17 2020 16:34:53 GMT+0000 (Coordinated Universal Time)

Saved by @ianh #python #regex #punctuation

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

https://www.quora.com/How-do-I-remove-punctuation-from-a-Python-string