Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Check if a string is a valid ISBN-13 or ISBN-10
ResourceFunction["ValidISBNQ"]["string"] checks if "string" corresponds to a valid 13-digit International Standard Book Number (ISBN-13). | |
ResourceFunction["ValidISBNQ"]["string",10] checks if "string" corresponds to a valid 10-digit International Standard Book Number (ISBN-10). | |
ResourceFunction["ValidISBNQ"][eid] checks if the ExternalIdentifier eid corresponds to a valid ISBN. |
Check the ISBN-13 of the book An Elementary Introduction to the Wolfram Language:
In[1]:= |
|
Out[1]= |
|
Check the ISBN-10 of the same book:
In[2]:= |
|
Out[2]= |
|
The ISBN may or may not have dashes:
In[3]:= |
|
Out[3]= |
|
In[4]:= |
|
Out[4]= |
|
ValidISBNQ supports ExternalIdentifier objects:
In[5]:= |
|
Out[5]= |
|
In[6]:= |
|
Out[6]= |
|
ValidISBNQ returns False for everything else:
In[7]:= |
|
Out[7]= |
|
In[8]:= |
|
Out[8]= |
|
This work is licensed under a Creative Commons Attribution 4.0 International License