Mathematica 9 is now available

Documentation / Mathematica / Built-in Functions / Programming / String Manipulation /

StringLength

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

FilledSmallSquare Example: StringLength["tiger"] LongRightArrow.

FilledSmallSquare StringLength counts special characters such as as single characters, even if their full names involve many characters.

FilledSmallSquare See Section 2.8.2.

FilledSmallSquare See also: Length, Characters.

FilledSmallSquare New in Version 1; modified in 3.

Further Examples



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.