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.
The devastating war lasted five years, during which time Sweden was able to capture most of Poland.