Mathematica 9 is now available
 Documentation / Mathematica / Built-in Functions / Input and Output / Data Reading Options  /
String

  • String is the head of a character string " text ".
  • Strings can contain any sequence of ordinary or special characters.
  • x _String can be used as a pattern that represents a string.
  • String is used as a tag to indicate strings in Read, terminated by RecordSeparators characters.
  • In InputForm, special characters in strings are given as \[ Name ] or \: code.
  • Except when they are enclosed between \< and \>, newlines and any tabs which follow them are ignored when strings are input.
  • See the Mathematica book: Section 2.7.1.
  • See also: ToExpression, ToString, SyntaxQ, Characters.

    Further Examples

    Text that is delimited by quotes has the head String.

    In[1]:=

    Out[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.