PRODUCTS
PURCHASE
FOR USERS
COMPANY
OUR SITES
DOCUMENTATION CENTER SEARCH
Mathematica
>
Patterns
>
Built-in
Mathematica
Symbol
Patterns and Transformation Rules
Putting Constraints on Patterns
Setting Up Functions with Optional Arguments
String Patterns
Working with String Patterns
Tutorials »
|
PatternTest
Condition
DeleteCases
Alternatives
Cases
See Also »
|
Patterns
Rules & Patterns
String Manipulation
String Patterns
More About »
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
.
MORE INFORMATION
Except
[
c
]
is equivalent to
Except
[
c
, _]
.
Except
[
c
]
represents the complement of the set of expressions that match
c
.
Except
works in
StringExpression
.
EXAMPLES
CLOSE ALL
Basic Examples
(2)
This gives all elements except 0:
In[1]:=
Out[1]=
Delete all nonvowel characters from a string:
In[1]:=
Out[1]=
Scope
(2)
Applications
(3)
SEE ALSO
PatternTest
Condition
DeleteCases
Alternatives
Cases
TUTORIALS
Patterns and Transformation Rules
Putting Constraints on Patterns
Setting Up Functions with Optional Arguments
String Patterns
Working with String Patterns
MORE ABOUT
Patterns
Rules & Patterns
String Manipulation
String Patterns
New in 5.1
© 2008 Wolfram Research, Inc.