Snippets Collections
import re
if re.match(r"hello[0-9]+", 'hello1'):
    print('Yes')
star

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

#regex #python #match

Save snippets that work with our extensions

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