RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^([a-z0-9]{32})$
Description
Matches a md5 hash, simple yet powerful
Matches
790d2cf6ada1937726c17f1ef41ab125
Non-Matches
790D2CF6ADA1937726C17F1EF41AB125 | 790d2cf6ada1937726c17f1ef41ab125f6k
Author Rating: The rating for this expression. Thijs Wijnmaalen
Source
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: Range too big
Name: Ryan Bies
Date: 5/21/2008 3:01:32 PM
Comment:
MD5 outputs hexadecimal(base16), not base36, so you'll be better off limiting your regex to fit: ^([a-f0-9]{32})$


Title: UC and LC
Name: SilverCloud
Date: 10/27/2005 7:41:20 AM
Comment:
/^[A-Fa-f0-9]{32}$/ Is even better, for both uppercase and lowercase chars.


Title: The hex char set would end at f, right?
Name: Hans
Date: 5/16/2004 11:07:38 PM
Comment:
^([a-z0-9]{32})$ would work with md5, but ^([a-f0-9]{32})$ would be more correct I belive.


Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials