uuid.is_valid

BOOLuuid.is_validSTRINGuuid

Available inall subroutines.

Returns true if string holds a textual representation of a valid UUID (per RFC 4122). Returns false otherwise.

Example

if (uuid.is_valid(req.http.X-Unique-Id)) {
set beresp.http.X-Unique-Id-Valid = "yes";
}

User contributed notes

BETA

Do you see an error in this page? Do you have an interesting use case, example or edge case people should know about? Share your knowledge and help people who are reading this page! (Comments are moderated; for support, please contact Fastly support)