import re


def name_suffix_from_file(filename):
    """
    extracts name and suffix from a filename
    """
    name = re.match(r"(.*)\.", filename)
    suffix = re.search(r"[^.]+$", filename)
    if name is not None and suffix is not None:
        return name.group(1), suffix.group()

    return filename, ""