Skip to content

regex cheatsheet

Nina Barzh edited this page Apr 15, 2021 · 2 revisions
sentence_endings = r"[.?!]"
capitalized_words = r"[A-Z]\w+"
spaces = r"\s+"
digits = r"\d+"

More in re — Regular expression operations

Clone this wiki locally