Checks that a string appears to be in the format of a UUID.
Plugins should not implement validation, since UUIDs should be in a consistent format across all plugins.
string $uuid: The string to test.
bool TRUE if the string is well formed, FALSE otherwise.
public function isValid($uuid) {
return preg_match("/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}\$/", $uuid);
}