This is documentation for Mathematica 5, 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

FilledSmallSquare StringDrop["string", n] gives "string" with its first n characters dropped.

FilledSmallSquare StringDrop["string", -n] gives "string" with its last n characters dropped.

FilledSmallSquare StringDrop["string", n] gives "string" with its n character dropped.

FilledSmallSquare StringDrop["string", m, n] gives "string" with characters m through n dropped.

FilledSmallSquare StringDrop uses the standard sequence specification (see Section A.3.5).

FilledSmallSquare Example: StringDrop["abcdefgh", 2] LongRightArrow.

FilledSmallSquare StringDrop["string", m, n, s] drops characters m through n in steps of s.

FilledSmallSquare See Section 2.8.2.

FilledSmallSquare See also: Drop, StringTake, StringPosition, StringReplacePart.

FilledSmallSquare New in Version 2; modified in 4.

Further Examples