Enter search terms or a module, class or function name.
pandas.api.types.
is_re
Check if the object is a regex pattern instance.
obj : The object to check.
is_regex : bool
Whether obj is a regex pattern.
Examples
>>> is_re(re.compile(".*")) True >>> is_re("foo") False