Page 1 of 1

unique hash format

Posted: Tue Jun 21, 2005 4:02 pm
by gzip
I am querying the db using a -unique id that is being passed through the query string (see previous thread titled "IN operator"). I'm validating the data using a regular expression in PHP before I pass it along. My case insensitive regex is currently "^[a-z0-9]{15,16}$". Does 15-16 alphanumeric characters cover all possibilities of a unique id hash?

unique hash format

Posted: Tue Jun 21, 2005 4:34 pm
by John
9-16 hex (0-9a-f) characters will cover it.

unique hash format

Posted: Tue Jun 21, 2005 4:53 pm
by gzip
Looks good. Thanks for the quick response!