input is regexp if isearch-regexp is non-nil