import re


def get_page(str):
    """
    获取该项页码
    :param : str
    :return: int page
    """

    # page = str.split()[-1]
    page = re.findall(r"[0-9]{1,3}$", str)[0]  # list 正则$表末尾查找
    temp = page
    if temp.strip().lstrip('-').isdigit():
        return int(page)
    else:
        return "该行目录错误: " + str