IgnoringInactive

IgnoringInactive[patt]

is a pattern object that, for purposes of pattern matching, ignores occurrences of Inactive in both patt and the expression being matched.

Examples

open allclose all

Basic Examples  (1)

Replace all elements in a list that match a certain pattern:

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

Use IgnoringInactive to include a particular Inactive pattern:

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

Scope  (3)

Applications  (2)

See Also

Inactive  MatchQ  Cases  ReplaceAll

Introduced in 2014
(10.0)