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:
Thijs Wijnmaalen
|
Source |
|
Your Rating |
|
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.