allow for is.null(opts_regex)