verify the search pattern is given