Skip to content

Instantly share code, notes, and snippets.

@sathishshan
Last active December 31, 2020 09:29
Show Gist options
  • Save sathishshan/07f8136b115119626e668352d2dde552 to your computer and use it in GitHub Desktop.
Save sathishshan/07f8136b115119626e668352d2dde552 to your computer and use it in GitHub Desktop.

Regex to match MD2, MD4, MD5, SHA224, SHA256, SHA384, SHA512 hashes in case someone needs it.

([a-fA-F0-9]{32}(?:[a-fA-F0-9]{8})?(?:[a-fA-F0-9]{16})?(?:[a-fA-F0-9]{8})?(?:[a-fA-F0-9]{32})?(?:[a-fA-F0-9]{32})?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment