src/mako/utility/UUID.php
public static function validate(string $uuid): bool
	{
		$uuid = str_replace(['urn:uuid:', '{', '}'], '', $uuid);

		return (bool) preg_match('/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i', $uuid);
	}
public static function validate(string $uuid): bool
	{
		$uuid = str_replace(['urn:uuid:', '{', '}'], '', $uuid);

		return (bool) preg_match('/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i', $uuid);
	}
public static function validate ( string $ uuid ) : bool { $ uuid = str_replace ( [ 'urn:uuid:' , '{' , '}' ] , '' , $ uuid ) ; return ( bool ) preg_match ( '/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i' , $ uuid ) ; }
Checks if a UUID is valid.

@param  string $uuid The UUID to validate
@return bool
Checks if a UUID is valid .