Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Convert a string to lower camel case
ResourceFunction["ToCamelCase"][string] converts string to lower camel case. |
Take a simple case and convert it to lower camel case:
In[1]:= |
Out[1]= |
Use Capitalize in conjunction with ToCamelCase to generate a string in upper camel case:
In[2]:= |
Out[2]= |
Only whitespace characters are removed, so symbols, punctuation and numbers remain in the resulting string:
In[3]:= |
Out[3]= |
Keep only letters:
In[4]:= |
Out[4]= |
Special characters are left untouched:
In[5]:= |
Out[5]= |
Use RemoveDiacritics to normalize special characters to ASCII-friendly characters:
In[6]:= |
Out[6]= |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License