Internal function for select_types() to escape regular expressions
Source: R/utils.R
escape_regex.RdThis function escapes glob patterns before utils:glob2rx(), therefore * and
? are unescaped.