import re


def sanitizeTitle(title):
    """Sanitizes the passed title string to allow the file to be saved on windows without introducing illegal characters"""
    matches = re.findall(r"[^/\\:*?\"<>|]+", title) 

    fullstring = ""
    for match in matches:
        fullstring += match
        
    return fullstring