Jennifer Aniston says shooting 'The Break-Up' helped her get over her divorce from Brad Pitt.

The 42-year-old actress - who split from the Hollywood heartthrob in 2005 after almost five years of marriage - appeared in the 2006 comedy about a couple in the middle of a bitter split but instead of bringing back hurtful memories, Jennifer says it helped ease the pain.

The former 'Friends' star - who dated co-star Vince Vaughn for over a year - said: "It was just a beautiful story about a couple breaking up. And I was slightly familiar on the topic and the issue. And I sort of honestly felt like, what a great way to sort of exercise some of that.

"I enjoyed it. It really enjoyed it. You would think otherwise, because even the producers were like, 'I don't know if we should ask you to do this,' but I was like, why not? Turn the page, let's move on."

Following their separation, Brad began dating Angelina Jolie, with whom he now raises six children with, while Jennifer has dated a string of men including Vince, John Mayer, Paul Sculfor and Bradley Cooper.

She is now romancing actor Justin Theroux and recently admitted she was very happy with him.

Jennifer was speaking in an interview for TV show 'Inside The Actors' Studio' and she also revealed how grateful she is to the sitcom 'Friends' - in which she played Rachel Green for 10 series - for catapulting her to superstardom.

She said: "It's one of the greatest jobs I ever had. It gave me everything. It gave me this ridiculously blessed life and career and taught me so much, and it's the best time I ever had."

Recalling on it felt filming wrapped on the last episode, she added: "It was just awful. The last scene, we just wept, cried our eyes out, in front of the whole show. A couple of us stayed really late and we crawled up to the roof of stage 24 and we drank champagne and just watched the sunrise. It was really wonderful."