matching patterns 981240