Mathematica 9 is now available

StringLength

Usage

StringLength["string"] gives the number of characters in a string.


Notes

• Example: StringLength["tiger"]LongRightArrow .
StringLength counts special characters such as  as single characters, even if their full names involve many characters.
StringLength[{ ,  , ... }] gives the list of lengths of each of the  .
• See Section 2.8.2.
• See also: Length, Characters.
• New in Version 1; modified in 5.1.


Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.