Pattern matching is a family of tools for finding similar objects in different sources. In image processing, the pattern matching is used for locating a small image (called model) in a bigger one (called target image). For searching text, regular expressions are commonly used.