Check if the string is a valid session id

Another article devoted to validation of strings. In this case a function, which validates if the supplied string is a valid session id.

The format is very similar to an md5 hash with only one difference - the session id consists of 26 alphanumeric characters.

Check if the string is a valid GUID

This function checks if the supplied string is a valid GUID.

MSDN defines GUID as "a 128-bit integer (16 bytes) that can be used across all computers and networks wherever a unique identifier is required. Such an identifier has a very low probability of being duplicated."

GUID consists of alphanumeric characters only and is grouped in five groups separated by hyphens as seen in this example:
3F2504E0-4F89-11D3-9A0C-0305E82C3301

Check if the string is a valid md5 hash

A function to check if a string is a valid MD5 hash. That means that the string must be 32 characters long and can only consist of letters and numbers.

Showing 1 - 3 of 3 results