Pattern matching software