def regex(val, schema, name = None): # pylint: disable-msg=W0613
    """
    !~~regex(regex) or !~~regex regex
    """
    if name is None:
        name = schema

    if not _regexs.has_key(name):
        return False

    try:
        if _regexs[name](val):
            return True
    except TypeError:
        pass

    return False
def regex ( val , schema , name = None ) : if name is None : name = schema if not _regexs . has_key ( name ) : return False try : if _regexs [ name ] ( val ) : return True except TypeError : pass return False
!~~regex(regex) or !~~regex regex