Jennifer Lopez says she's still "optimistic" about love despite three failed marriages.
"Sometimes it doesn't work- and that's sad. But I remain an eternal optimist about love. I believe in love," Lopez told Vanity Fair in her first interview since announcing her split from Marc Anthony after seven years of marriage.
Lopez, 41, and Anthony, 42, announced in July that they were breaking up, but they did not specify a reason for the split. The two married in June 2004 and their twin son and daughter, Max and Emme, were born in February 2008.
Lopez said she and Anthony worked well together and that he will always hold a special place in her heart as her children's father.
"We actually work great together, and he was always very supportive. Together we could make magic - and we did," Lopez said.
The two are both actors and singers and released a duet,"No Me Ames," in 1999. In 2011, Lopez appeared as a judge on the 10th season of "American Idol," while Anthony joined the TNT drama series "HawthoRNe" as a regular cast member.
In Vanity Fair's September issue, which goes on sale nationwide Aug. 9, Lopez opened up about her other high-profile relationships, including those with P. Diddy and Ben Affleck. She said she's learned to walk away when something isn't right.
"To understand that a person is not good for you, or that that person is not treating you in the right way, or that he is not doing the right thing for himself - if I stay, then I am not doing the right thing for me," she said.
Lopez, who has starred in several romantic comedies, including "The Wedding Planner" and "The Back-up Plan," called herself a "hopeless romantic" and a "passionate person when it comes to love."
Lopez has been married twice before but has no other children other than her and Anthony's twins. She and Ojani Noa were married between 1997 and 1998. Lopez wed actor and dance choreographer Cris Judd in 2001. They divorced in 2003.
Before Lopez, Anthony was married to actress Dayanara Torres between 2000 and 2004. They have two sons - Cristian, who was born in 2001, and Ryan, born in 2003. Anthony also has a daughter named Ariana, who was born in 1994, with ex-girlfriend Debbie Rosado.