def regex_search(value, find='', ignorecase=False):
    'Search using regex.'
    if (not isinstance(value, str)):
        value = str(value)
    flags = (re.I if ignorecase else 0)
    return bool(re.search(find, value, flags))
Search using regex.
def regex_search(value, find=, ignorecase=False):
    
    if (not isinstance(value, str)):
        value = str(value)
    flags = (re.I if ignorecase else 0)
    return bool(re.search(find, value, flags))