Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@J535D165
Last active March 6, 2017 08:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save J535D165/7e729226db585c88b2ba5028f11a555d to your computer and use it in GitHub Desktop.
Save J535D165/7e729226db585c88b2ba5028f11a555d to your computer and use it in GitHub Desktop.
Python Regular Expressions
# Dutch zip code matcher
r"[\bNL-]*(?P<pc4>\d{4})\s*(?P<pc6>[A-Za-z]{2})\b"
# Email matcher
r"(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment