Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

Documentation / Mathematica / Built-in Functions / Programming / String Manipulation /

StringTake

FilledSmallSquare StringTake["string", n] gives a string containing the first n characters in "string".

FilledSmallSquare StringTake["string", -n] gives the last n characters in "string".

FilledSmallSquare StringTake["string", n] gives the n character in "string".

FilledSmallSquare StringTake["string", m, n] gives characters m through n in "string".

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

FilledSmallSquare Example: StringTake["abcdefg", 3] LongRightArrow.

FilledSmallSquare StringTake["string", m, n, s] gives characters m through n in steps of s.

FilledSmallSquare See Section 2.8.2.

FilledSmallSquare See also: Take, StringDrop, StringPosition.

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


 © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy | [ja] |
Sign up for our newsletter: