Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Determine if an expression is a valid UUID
ResourceFunction["UUIDQ"][expr] determines if expr is a valid UUID. |
Check the validity of a UUID:
In[1]:= |
Out[1]= |
In[2]:= |
Out[2]= |
Uppercase is allowed:
In[3]:= |
Out[3]= |
Letters must be in the range a to f:
In[4]:= |
Out[4]= |
Expressions that are not strings will return False:
In[5]:= |
Out[5]= |
Adding extra characters to a UUID will cause UUIDQ to return False:
In[6]:= |
Out[6]= |
In[7]:= |
Out[7]= |
Separators must be hyphens:
In[8]:= |
Out[8]= |
In[9]:= |
Out[9]= |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License