|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
StringLength
StringLength["string"]
gives the number of characters in a string.
DetailsDetails
- StringLength counts special characters such as
as single characters, even if their full names involve many characters. - StringLength[{s1, s2, ...}] gives the list of lengths of each of the
.
ExamplesExamplesopen allclose all
Basic Examples (1)Basic Examples (1)
Find the number of characters in a string:
| In[1]:= |
| Out[1]= |
New in 1 | Last modified in 5.1
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
