This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 Documentation / Mathematica / Built-in Functions / Input and Output / Data Reading Options  /

  • 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.