add regex to search pattern