Snippets Collections
import re 
s = "string. With. Punctuation?" 
s = re.sub(r'[^\w\s]','',s) 
import re
if re.match(r"hello[0-9]+", 'hello1'):
    print('Yes')
((<url>)\n(<loc>))|((<\/loc>)\n.*\n.*\n.*\n(<\/url>))
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
bookmark
dashboard

Wed Aug 12 2020 03:09:20 GMT+0000 (UTC) https://stackoverflow.com/questions/12595051/check-if-string-matches-pattern

#regex #python #match
bookmark
dashboard

Tue Jul 21 2020 07:06:16 GMT+0000 (UTC)

#urls #sitemap #regex

Save snippets that work with our extensions

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