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.

ExamplesExamplesopen allclose all

Basic Examples  (1)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]=
Introduced in 2014
(10.0)