import re


def get_frame_from_path(path):
    """
    Return sequence number from Flame path style

    Args:
        path (str): path url or simple file name

    Returns:
        int: sequence frame number

    Example:
        def get_frame_from_path(path):
            ("plate.0001.exr") > 0001

    """
    frame_pattern = re.compile(r"[._](\d+)[.]")

    found = re.findall(frame_pattern, path)

    if found:
        return found.pop()
    else:
        return None