fix search query regex pattern