Create matchpattern