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