def isregex(possible_regex):
return hasattr(possible_regex, "<STR_LIT>") and callable(possible_regex.search)<EOL>
Returns whether the given object is (probably) a regular expression object.

Args:
    possible_regex (object): An object which may or may not be a regular expression.

Returns:
    bool: Whether the given object is (probably) a regular expression object.