WhitespaceCharacter

WhitespaceCharacter
represents a single whitespace character in StringExpression.

DetailsDetails

  • Whitespace characters are taken to include spaces, tabs, and newlines.

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

Split a string at all single whitespace characters:

In[1]:=
Click for copyable input
Out[1]=

Sequences of whitespace characters are split into single characters:

In[1]:=
Click for copyable input
Out[1]//InputForm=

Use Whitespace to represent a sequence of whitespace characters:

In[2]:=
Click for copyable input
Out[2]//InputForm=
New in 5.1
New to Mathematica? Find your learning path »
Have a question? Ask support »