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:

Delete all nonvowel characters from a string:

Scope  (2)

Except works with patterns and string patterns:

Constraints on patterns:

Applications  (3)

Get all non-integers:

Find words containing nonword characters:

Strip off all tags "<...>" from an HTML document:

Introduced in 2004
 (5.1)