Wolfram Language & System 10.4 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

StringDelete

StringDelete["string",patt]
yields the string obtained by deleting from string all occurrences of anything matching the string pattern patt.

StringDelete[patt]
represents an operator form of StringDelete that can be applied to an expression.

Details and OptionsDetails and Options

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

Remove whitespace from a string:

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

Remove a specific character sequence:

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

Delete substrings matching a string pattern:

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

Use the operator form of StringDelete:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2015
(10.1)