Combine two similar search patterns