Cases
[list, pattern]Cases
[list, pattern, ls]Cases
[list, pattern, Heads->bool]Cases[{a, 1, 2.5, "string"}, _Integer|_Real]
Cases[_Complex][{1, 2I, 3, 4-I, 5}]
Find symbols among the elements of an expression:
Cases[{b, 6, \[Pi]}, _Symbol]
Also include the head of the expression in the previous search:
Cases[{b, 6, \[Pi]}, _Symbol, Heads -> True]