StringTake

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

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

StringTake["string",{n}]
gives the ^(th) character in .

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

StringTake["string",{spec1,spec2,}]
gives a list of the substrings specified by the .

StringTake[{s1,s2,},spec]
gives the list of results for each of the .

DetailsDetails

  • StringTake["string",{m,n,s}] gives characters m through n in steps of s.
  • StringTake uses the standard Wolfram Language sequence specification.
Introduced in 1991
(2.0)
| Updated in 2007
(6.0)