import glob


def insensitive_glob(pattern):
    """Extract file with glob in a case insensitive way"""
    def either(c):
        return '[%s%s]'%(c.lower(),c.upper()) if c.isalpha() else c
    return glob.glob(''.join(map(either,pattern)))