Escape search terms for safe regex'ing