Mathematica 9 is now available

StringDrop

Usage

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[{ ,  , ... }, spec] gives the list of results for each of the  .


Notes

StringDrop uses the standard sequence specification (see Section A.3.5).
• Example: StringDrop["abcdefgh", 2]LongRightArrow .
StringDrop["string", {m, n, s}] drops characters m through n in steps of s.
• See Section 2.8.2.
• New in Version 2; modified in 5.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.