Mathematica 9 is now available

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



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.