DocumentationMathematicaBuilt-in FunctionsProgrammingPattern Matching
MatchQ
MatchQ[expr, form] returns True if the pattern form matches expr, and returns False otherwise.
See Section 2.3.5. See also: StringMatchQ. New in Version 1.
Further Examples