UUID

Matches a valid UUID.

Contributed by @itsbrunodev

regex
^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
sh
# Valid UUIDs
123a4567-b09b-12c3-d456-426614174f00
 
# Invalid UUIDs
123a4567-b09b-12c3-d456-426614174f0

Keywords

uuid
guid