Answer
Viktor Korchnoi played in three official world chess championship matches in his career. He played against Boris Spassky in 1974, Anatoly Karpov in 1978, and Anatoly Karpov again in 1981. Korchnoi won the first match against Spassky, but lost the second and third matches against Karpov.