def expand_wildcard(string, secrets):
    prog = re.compile((('^' + string.replace(WILDCARD_CHAR, '.*')) + '$'))
    output = []
    for secret in secrets:
        if (prog.search(secret) is not None):
            output.append(secret)
    return output
def expand_wildcard(string, secrets):
    prog = re.compile((('^' + string.replace(WILDCARD_CHAR, '.*')) + '$'))
    output = []
    for secret in secrets:
        if (prog.search(secret) is not None):
            output.append(secret)
    return output