PRODUCTS
Mathematica
Mathematica for Students
Mathematica for the Classroom
grid
Mathematica
web
Mathematica
Mathematica Player
(free download)
Mathematica Player Pro
Wolfram
Workbench
Mathematica
Applications
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
FOR USERS
All User Resources
Product Registration
Technical Support
Customer Service
Developer Support
Does My Site Have a License?
Free Seminars
Certified Training
Custom Group Seminars
Documentation & Examples
Tutorial Screencasts
Video Gallery
Demonstrations Project
Education Portal
Student Resources
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Wolfram Blog
Mathematica Journal
Wolfram Library Archive
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
Mathematica
>
Core Language
>
String Manipulation
>
Built-in
Mathematica
Symbol
Operations on Strings
Tutorials »
|
Length
Characters
See Also »
|
Atomic Elements of Expressions
String Manipulation
String Operations
More About »
StringLength
StringLength
["
string
"]
gives the number of characters in a string.
MORE INFORMATION
StringLength
counts special characters such as
as single characters, even if their full names involve many characters.
StringLength
[{
s
1
,
s
2
,
...
}]
gives the list of lengths of each of the
s
i
.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Find the number of characters in a string:
In[1]:=
Out[1]=
Scope
(3)
Applications
(1)
Properties & Relations
(1)
Possible Issues
(2)
SEE ALSO
Length
Characters
TUTORIALS
Operations on Strings
MORE ABOUT
Atomic Elements of Expressions
String Manipulation
String Operations
RELATED LINKS
NKS|Online
(
A New Kind of Science
)
New in 1 | Last modified in 5.1
© 2008 Wolfram Research, Inc.