You can remember the meaning of 遗憾 with this easy mnemonic:
I lost (遗) one of my best friends over a tiny argument, and it is something I've regretted (憾) all my life.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.