WhitespaceCharacter

WhitespaceCharacter

represents a single whitespace character in StringExpression.

Details

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

Examples

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=

See Also

Whitespace  PunctuationCharacter  Except  StringExpression

Tutorials

Introduced in 2004
(5.1)