Internal function for select_types() to check if a string is a regular expression

is_regex(x)

Arguments

x

a character string to be tested