MD5 Hash Regular Expression

A regular expression to match MD5 hashes.

/^([a-f\d]{32}|[A-F\d]{32})$/

What is an MD5 Hash:

MD5 is a widely used hash function that converts a string of any length and encodes it into a 128-bit fingerprint.

MD5 Hash Examples:

  • d41d8cd98f00b204e9800998ecf8427e
  • 346EDE4928BD71C540F95E279B683964

See Also:

Regex Is Copied!