This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.

# StringSplit

 StringSplitsplits into a list of substrings separated by whitespace. StringSplitsplits into substrings separated by delimiters matching the string expression patt. StringSplitsplits at any of the . StringSplitinserts val at the position of each delimiter. StringSplitinserts at the position of each delimiter . StringSplitsplits into at most n substrings. StringSplitgives the list of results for each of the .
• StringSplit[s] does not return the whitespace characters that delimit the substrings it returns.
• Whitespace includes any number of spaces, tabs, and newlines.
• The string expression patt can contain any of the objects specified in the notes for StringExpression.
• If s contains two adjacent delimiters, StringSplit considers there to be a zero-length substring between them.
• StringSplit by default gives the list of substrings of s that occur between delimiters defined by patt; it does not include the delimiters themselves.
• StringSplit includes val at the position of each delimiter.
• StringSplit evaluates val only when the pattern is found.
• StringSplit includes at the position of delimiters matching , but omits delimiters matching .
• By default, StringSplit drops zero-length substrings associated with delimiters that appear at the beginning or end of s.
• StringSplit[s, patt, All] returns all substrings, including zero-length ones at the beginning or end.
Pick out substrings delimited by whitespace:
Show the substrings with quotes:
Split a string at every :
Pick out substrings delimited by whitespace:
 Out[1]=
Show the substrings with quotes:
 Out[2]//InputForm=

Split a string at every :
 Out[1]=
 Scope   (8)
Split at every run of spaces:
Use string patterns:
Regular expressions:
Mixed regular expressions and string patterns:
Split into substrings separated by either delimiter:
Insert a value at the position of a delimiter:
Include the delimiters in the output:
StringSplit automatically threads over lists of strings:
All substrings, including zero-length ones at the beginning or end:
 Options   (1)
Split a string at every "c", including uppercase letters:
 Applications   (3)
A base random DNA string: