pandas.api.types.is_re# pandas.api.types.is_re(obj)[source]# Check if the object is a regex pattern instance. Parameters objThe object to check Returns is_regexboolWhether obj is a regex pattern. Examples >>> is_re(re.compile(".*")) True >>> is_re("foo") False