import re


def sanitize_for_filename(original_string):
    """ Sanitizes a string to use it as a filename on most filesystems.

    :param original_string: Original string to sanitize
    :returns: Sanitized string/filename
    """
    sanitized_file_name = re.sub('[\\\\/:*?\"<>|]', '_', original_string)
    return sanitized_file_name