Recent | Popular
#python #regex #punctuation
import re s = "string. With. Punctuation?" s = re.sub(r'[^\w\s]','',s)
Sat Oct 17 2020 16:34:53 GMT+0000 (Coordinated Universal Time) https://www.quora.com/How-do-I-remove-punctuation-from-a-Python-string