Skip to content

Instantly share code, notes, and snippets.

@JohnPreston
Created November 13, 2019 14:27
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 JohnPreston/ebbf8e7499aee697eda207f3f1eee135 to your computer and use it in GitHub Desktop.
Save JohnPreston/ebbf8e7499aee697eda207f3f1eee135 to your computer and use it in GitHub Desktop.
S3PathRegex
#For specific file extension
(^(s3:\/\/)([a-z0-9.-]+)(\/+)?(\/[a-zA-Z0-9.-_\/]+(\/)?)?(\/)([\w-_.]+.sql))
#For specific file extension or no extension at all
(^(s3:\/\/)([a-z0-9.-]+)(\/+)?(\/[a-zA-Z0-9.-_\/]+(\/)?)?(\/)([\w-_.]+)(.zip)?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment