If regexp in subsearch is invalid, return NULL