text: Pattern matching is the act of checking for the presence of the constituents of a pattern , whereas the detecting for underlying patterns is referred to as pattern recognition .
simplified: Pattern matching is checking if a certain pattern is present .