Skip to content

Instantly share code, notes, and snippets.

@gkthiruvathukal
Created June 15, 2016 21:30
Show Gist options
  • Select an option

  • Save gkthiruvathukal/fd2acab1bd6b1f5d58a45f0ed45d1696 to your computer and use it in GitHub Desktop.

Select an option

Save gkthiruvathukal/fd2acab1bd6b1f5d58a45f0ed45d1696 to your computer and use it in GitHub Desktop.
pattern = r"\d+"
import re
regex = re.compile(pattern)
regex.match("George")
regex.match("35")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment