This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
 Documentation / Mathematica / Built-in Functions / Programming / String Manipulation  /
StringDrop

  • StringDrop[" string ", n ] gives " string " with its first n characters dropped.
  • StringDrop[" string ", - n ] gives " string " with its last n characters dropped.
  • StringDrop[" string ", n ] gives " string " with its n character dropped.
  • StringDrop[" string ", m , n ] gives " string " with characters m through n dropped.
  • StringDrop uses the standard sequence specification (see Section A.3.5).
  • Example: StringDrop["abcdefgh", 2].
  • See the Mathematica book: Section 2.7.2.
  • See also: Drop, StringTake, StringPosition, StringReplacePart.

    Further Examples

    This deletes the first six characters from this string.

    In[1]:=

    Out[1]=