ignore invalid regexp in finding