do not search when regex is NULL