Skip to contents

Is it a GUID / UUID?

Usage

is_guid(x)

Arguments

x

A character vector.

Value

Logical vector; TRUE for the 8-4-4-4-12 hex UUID form.

See also

Other hash detectors: is_md5(), is_sha1(), is_sha256()

Examples

is_guid(c("f2a59360-1d1a-49e8-9a2f-f9cdf0d5a811", NA))
#> [1] TRUE   NA