Mathematica > Core Language > String Manipulation >

StringLength

StringLength["string"]
gives the number of characters in a string.
  • StringLength counts special characters such as Alpha as single characters, even if their full names involve many characters.
  • StringLength[{s1, s2, ...}] gives the list of lengths of each of the si.
New in 1 | Last modified in 5.1
© 2008 Wolfram Research, Inc.
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team