I would use re.findall here, rather than trying to do a replacement to remove the portions you don't want:
確定! 回上一頁