Return to index

uuid functions

string = uuid_generate()

top

Generates a random UUID (version 4) and returns it as a lowercase string.

Example:

# Example for uuid_generate
println uuid_generate()


string = uuid_parse(string)

top

Normalises a UUID string to lowercase with dashes. Returns an empty string if the input is not a valid UUID.

Example:

# Example for uuid_parse
println uuid_parse("550e8400-e29b-41d4-a716-446655440000")
println uuid_parse("not-a-uuid")


bool = uuid_validate(string)

top

Returns true if the input is a valid UUID string (with dashes, lowercase).

Example:

# Example for uuid_validate
println uuid_validate("550e8400-e29b-41d4-a716-446655440000")
println uuid_validate("not-a-valid-uuid")