Pattern matching requires using past experience, logic, or theory before the job begins to specify what we expect to find.
Logic has an effect as to how pattern matching functions.