Except

Except[c]

is a pattern object which represents any expression except one that matches c.

Except[c,p]

represents any expression that matches p but not c.

Details

Examples

open allclose all

Basic Examples  (2)

This gives all elements except 0:

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

Delete all nonvowel characters from a string:

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

Scope  (2)

Applications  (3)

See Also

PatternTest  Condition  DeleteCases  Alternatives  Cases

Tutorials

Introduced in 2004
(5.1)