PunctuationCharacter

PunctuationCharacter

represents a punctuation character in StringExpression.

Details

  • PunctuationCharacter is taken to match any Unicode punctuation character, not including whitespace characters.

Examples

open allclose all

Basic Examples  (4)

Match a punctuation character:

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

Test whether a string contains only punctuation:

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

Extract punctuation characters from a string:

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

Remove punctuation characters:

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

Applications  (1)

Properties & Relations  (1)

See Also

WhitespaceCharacter  WordCharacter  StringExpression  CharacterRange  Except  LetterQ  StringSplit  StringExtract

Introduced in 2015
(10.3)