- Calculate whether the given pattern exist in the given text. - Return true if it finds a match. - Otherwise return false.