直到结局后才明白
[zhí dào jié jú hòu cái míng bái]
This expresses a regretful feeling of gaining insight or enlightenment only after the conclusion of a situation has come about. This realization comes too late, usually carrying an air of melancholy acceptance.