Regex comprehensive cheat sheet
\d{3}-\d{2}-\d{4}
re.match(r"pattern", string)
^abc$
[A-Za-z0-9_]+
a{2,4}
(\d{3})-(\d{2})-(\d{4})
\bword\b
\p{L}+
re.sub(r"\\d", "X", "abc123") # abcXXX
re.sub(r"(\w+) (\w+)", r"\\2 \\1", "hello world") # world hello
/pattern/gi
\.
\$\^\*\+
[\w.-]+@[\w.-]+\\.[a-zA-Z]{2,6}
https?://[\w./-]+
\(\d{3}\) \d{3}-\d{4}
\d{4}-\d{2}-\d{2}