Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Check whether a string is a valid symbol name
Check whether "x" is a valid symbol name:
In[1]:= | ![]() |
Out[1]= | ![]() |
Check a string number:
In[2]:= | ![]() |
Out[2]= | ![]() |
Symbols can not start with numbers:
In[3]:= | ![]() |
Out[3]= | ![]() |
Number characters can be later in the symbol:
In[4]:= | ![]() |
Out[4]= | ![]() |
Characters besides letters and digits are not valid in symbols:
In[5]:= | ![]() |
Out[5]= | ![]() |
Spaces are invalid:
In[6]:= | ![]() |
Out[6]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License