This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

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.
  • Except[c] represents the complement of the set of expressions that match c.
This gives all elements except 0:
Delete all nonvowel characters from a string:
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]=
Except works with patterns and string patterns:
Constraints on patterns:
Get all non-integers:
Find words containing nonword characters:
Strip off all tags "<...>" from an HTML document:
New in 5.1