import re
import fnmatch


def isWildcardAccessible(path, repos, validpats=re.compile(r"\*|\?|\[.*?\]")):
    """
    Check if path is accessible with wildcards.
    
    Only wildcards containing *, ? or [] are accepted.
    """
    for repo in repos:
        if not validpats.search(repo):
            continue
        if fnmatch.fnmatch(path, repo):
            return True
    return False