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

Sat Oct 17 2020 16:34:53 GMT+0000 (UTC) https://www.quora.com/How-do-I-remove-punctuation-from-a-Python-string

#python #regex #punctuation

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension