Supreme Court Justice Ruth Bader Ginsburg said on Thursday that she regretted attacking Republican presidential candidate Donald Trump in a series of media interviews throughout the past week.

"On reflection, my recent remarks in response to press inquiries were ill-advised and I regret making them," the 83-year-old justice said in a statement.

She added: "Judges should avoid commenting on a candidate for public office. In the future I will be more circumspect."

51PHOTOS

Ruth Bader Ginsburg - Supreme Court Justice

See Gallery

Ruth Bader Ginsburg - Supreme Court Justice

The 81-year-old Supreme Court justice told a panel she and other justices had dinner and drinks before Obama's speech, leading to her falling asleep.

During a talk at George Washington University on Thursday night, Justice Ginsberg reveals she wasn't entirely sober when she fell asleep during the State of the Union.

WASHINGTON, DC - JANUARY 20: (L-R) U.S. Supreme Court Chief Justice John Roberts, with Justices, Anthony Kennedy, Ruth Bader Ginsburg, Stephen Breyer, Sonia Sotomayor and Elena Kagan listen as U.S. President Barack Obama delivers his State of the Union speech before members of Congress in the House chamber of the U.S. Capitol on January 20, 2015 in Washington, DC. Obama presented a broad agenda including attempts to address income inequality and making it easier for Americans to afford college education and child care. (Photo by Alex Wong/Getty Images)

WASHINGTON, DC - JANUARY 20: U.S. President Barack Obama hugs Supreme Court Justice Ruth Bader Ginsburg as Justices Anthony M. Kennedy (L) and Stephen G. Breyer look on prior to the State of the Union address on January 20, 2015 in the House Chamber of the U.S. Capitol in Washington, DC. Obama was expected to lay out a broad agenda to address income inequality, making it easier for Americans to afford college education, and child care. (Photo by Mandel Ngan-Pool/Getty Images)

WASHINGTON, DC - JANUARY 20: U.S. President Barack Obama hugs Supreme Court Justice Ruth Bader Ginsburg before delivering the State of the Union address in the House chamber of the U.S. Capitol January 20, 2015 in Washington, DC. Obama was expected to lay out a broad agenda to address income inequality, making it easier for Americans to afford college education, and child care. Also pictured are Vice President Joe Biden (L) and Speaker of the House John Boehner (R) (R-OH). (Photo by Mark Wilson/Getty Images)

WASHINGTON, DC - AUGUST 30: Supreme Court Justice Ruth Bader Ginsburg, celebrating her 20th anniversary on the bench, is photographed in the East conference room at the U.S. Supreme Court in Washington, D.C., on Friday, August 30, 2013. (Photo by Nikki Kahn/The Washington Post via Getty Images)

WASHINGTON, DC - AUGUST 30: Supreme Court Justice Ruth Bader Ginsburg, celebrating her 20th anniversary on the bench, is photographed in the West conference room at the U.S. Supreme Court in Washington, D.C., on Friday, August 30, 2013. (Photo by Nikki Kahn/The Washington Post via Getty Images)

Ruth Bader Ginsburg, associate justice of the U.S. Supreme Court, stands in her chambers following an interview in Washington, D.C., U.S., on Friday, Aug. 23, 2013. Ginsburg, 80, the oldest member of the Supreme Court and appointed to the court in 1993 by Democratic President Bill Clinton, has said on several occasions that she wants to match the longevity of Justice Louis Brandeis, who was 82 when he stepped down in 1939. Photographer: Andrew Harrer/Bloomberg via Getty Images

NEW YORK, NY - NOVEMBER 17: Honorable Samuel Alito, Jr. (L) Associate Justice of Supreme Court of the United States and Honorable Ruth Bader Ginsburg Associate Justice of Supreme Court of the United States attend Richard Tucker Music Foundation's 38th annual gala at Avery Fisher Hall, Lincoln Center on November 17, 2013 in New York City. (Photo by Paul Zimmerman/WireImage)

NEW YORK, NY - NOVEMBER 17: Honorable Ruth Bader Ginsburg, Associate Justice of Supreme Court of the United States, attends Richard Tucker Music Foundation's 38th annual gala at Avery Fisher Hall, Lincoln Center on November 17, 2013 in New York City. (Photo by Monica Schipper/Getty Images)

WASHINGTON, DC - JANUARY 28: Sen. Orrin Hatch (R-UT) (L) shakes hands with U.S. Supreme Court Associate Justice Ruth Bader Ginsburg (R) as Associate Justice Stephen Breyer look son before President Barack Obama delivers the State of the Union address to a joint session of Congress in the House Chamber at the U.S. Capitol on January 28, 2014 in Washington, DC. In his fifth State of the Union address, Obama is expected to emphasize on healthcare, economic fairness and new initiatives designed to stimulate the U.S. economy with bipartisan cooperation. (Photo by Chip Somodevilla/Getty Images)

US Supreme Court Justices Ruth Bader Ginsburg (L), and Stephen Breyer (R) listen as US President Barack Obama delivers the State of the Union address before a joint session of Congress on January 28, 2014 at the US Capitol in Washington. AFP PHOTO/Brendan SMIALOWSKI (Photo credit should read BRENDAN SMIALOWSKI/AFP/Getty Images)

WASHINGTON, DC - APRIL 17: Supreme Court Justice Ruth Bader Ginsburg waits for the beginning of the taping of 'The Kalb Report' April 17, 2014 at the National Press Club in Washington, DC. The Kalb Report is a discussion of media ethics and responsibility at the National Press Club held each month. (Photo by Alex Wong/Getty Images)

WASHINGTON, DC - APRIL 17: Supreme Court Justices Antonin Scalia (L) and Ruth Bader Ginsburg (R) wait for the beginning of the taping of 'The Kalb Report' April 17, 2014 at the National Press Club in Washington, DC. The Kalb Report is a discussion of media ethics and responsibility at the National Press Club held each month. (Photo by Alex Wong/Getty Images)

WASHINGTON, DC - AUGUST 30: Supreme Court Justice Ruth Bader Ginsburg, celebrating her 20th anniversary on the bench, is photographed in the West conference room at the U.S. Supreme Court in Washington, D.C., on Friday, August 30, 2013. (Photo by Nikki Kahn/The Washington Post via Getty Images)

WASHINGTON, DC - AUGUST 30: Supreme Court Justice Ruth Bader Ginsburg, celebrating her 20th anniversary on the bench, is photographed in the East conference room at the U.S. Supreme Court in Washington, D.C., on Friday, August 30, 2013. (Photo by Nikki Kahn/The Washington Post via Getty Images)

Ruth Bader Ginsburg, associate justice of the U.S. Supreme Court, looks out the window of her chambers following an interview in Washington, D.C., U.S., on Friday, Aug. 23, 2013. Ginsburg, 80, the oldest member of the Supreme Court and appointed to the court in 1993 by Democratic President Bill Clinton, has said on several occasions that she wants to match the longevity of Justice Louis Brandeis, who was 82 when he stepped down in 1939. Photographer: Andrew Harrer/Bloomberg via Getty Images

WASHINGTON, DC - FEBRUARY 12: Members of the Supreme Court, (L-R) Chief Justice John Roberts and associate justices Anthony Kennendy, Ruth Bader Ginsburg, John Paul Stevens, Sonia Sotomayor and Elena Kagan, applaud as U.S. President Barack Obama arrives to deliver his State of the Union speech before a joint session of Congress at the U.S. Capitol February 12, 2013 in Washington, DC. Facing a divided Congress, Obama focused his speech on new initiatives designed to stimulate the U.S. economy and said, 'ItÃs not a bigger government we need, but a smarter government that sets priorities and invests in broad-based growth'. (Photo by Chip Somodevilla/Getty Images)

WASHINGTON, DC - FEBRUARY 12: Supreme Court Associate Justice Ruth Bader Ginsburg attends President Barack Obama's State of the Union speech before a joint session of Congress at the U.S. Capitol February 12, 2013 in Washington, DC. Facing a divided Congress, Obama focused his speech on new initiatives designed to stimulate the U.S. economy and said, 'ItÃs not a bigger government we need, but a smarter government that sets priorities and invests in broad-based growth'. (Photo by Chip Somodevilla/Getty Images)

NEW YORK, NY - NOVEMBER 12: Justice Ruth Bader Ginsburg poses backstage at the 22nd annual Glamour Women of the Year Awards at Carnegie Hall on November 12, 2012 in New York City. (Photo by Dimitrios Kambouris/WireImage for Glamour Magazine)

NEW YORK, NY - NOVEMBER 12: Justice Ruth Bader Ginsburg speaks onstage at the 22nd annual Glamour Women of the Year Awards at Carnegie Hall on November 12, 2012 in New York City. (Photo by Theo Wargo/WireImage for Glamour Magazine)

CAMBRIDGE - MAY 26: While standing to receive her honorary degree, U.S. Supreme Court Associate Justice Ruth Bader Ginsburg is surprised with a serenade from Spanish tenor Placido Domingo (right) after he received his honorary degree. Sitting between them are commencement speaker and honorary degree recipient Ellen Johnson Sirleaf, president of Liberia, and Harvard president Drew Faust (right rear). Harvard University holds its commencement exercises in Tercentenary Theatre, on Thursday, May 26, 2011. (Photo by Pat Greenhouse/The Boston Globe via Getty Images)

WASHINGTON - APRIL 10: CEO Niche Media Jason Binn and the honorable Ruth Bader Ginsburg pose for a photo at Capitol File Magazine's After Party for Robert Redford's The Conspirator at The Newseum on April 10, 2011 in Washington, DC. (Photo by Paul Morigi/WireImage for Niche Media)

WASHINGTON, DC - JANUARY 25: U.S President Barack Obama (C) greets (L-R) Supreme Court Justices Anthony Kennedy, Ruth Bader Ginsburg and Stephen Breyer before the State of the Union address on Capitol Hill on January 25, 2011 in Washington, DC. During his speech Obama was expected to focus on the U.S. economy and increasing education and infrastructure funding while proposing a three-year partial freeze of domestic programs and $78 billion in military spending cuts. (Photo by Chip Somodevilla/Getty Images)

Ruth Bader Ginsburg, an Associate Justice on the United States Supreme Court, speaks during The Women's Conference in Long Beach, California, U.S., on Tuesday, Oct. 26, 2010. Originally established in 1985, the event has grown into the largest one-day conference for women in the U.S., and has a mission to empower women to be 'Architects of Change.' Photographer: Jonathan Alcorn/Bloomberg via Getty Images

LONG BEACH, CA - OCTOBER 26: Diane Swayer (L), and Associate Justice Ruth Bader Ginsburg speak during the Maria Shriver Women's Conference at the Long Beach Convention Center on October 26, 2010 in Long Beach, California. (Photo by Frederick M. Brown/Getty Images)

Supreme Court Justice Ruth Bader Ginsburg. (The Collection of the Supreme Court of the United States/MCT via Getty Images)

WASHINGTON - OCTOBER 08: U.S. Supreme Court Associate Justice Ruth Bader Ginsburg poses for photographs in the East Conference Room at the Supreme Court building October 8, 2010 in Washington, DC. This is the first time in history that three women are simultaneously serving on the court. (Photo by Chip Somodevilla/Getty Images)

SAN FRANCISCO - AUGUST 09: U.S. Supreme Court justice Ruth Bader Ginsburg is seen on a video screen as she speaks to delegates at the American Bar Association (ABA) House of Delegates meeting August 9, 2010 in San Francisco, California. Justice Ginsburg was honored with the prestigous ABA Medal, the Bar Association's highest honor. (Photo by Justin Sullivan/Getty Images)

SAN FRANCISCO - AUGUST 09: U.S. Supreme Court justice Ruth Bader Ginsburg speaks to delegates at the American Bar Association (ABA) House of Delegates meeting August 9, 2010 in San Francisco, California. Justice Ginsburg was honored with the prestigous ABA Medal, the Bar Association's highest honor. (Photo by Justin Sullivan/Getty Images)

US Supreme Court justice Ruth Bader Ginsburg (R) arrives for a reception in honor of Designated Supreme Court justice Elena Kagan August 6, 2010, in the East Room of the White House in Washington, DC. Kagan has become only the fourth woman to win confirmation as Supreme Court justice. AFP PHOTO/Jim WATSON (Photo credit should read JIM WATSON/AFP/Getty Images)

US President Barack Obama is greeted by Supreme Court Justice Ruth Bader Ginsburg prior to delivering his first State of the Union address at the US Capitol in Washington, DC, January 27, 2010. AFP PHOTO / Saul LOEB (Photo credit should read SAUL LOEB/AFP/Getty Images)

US Supreme Court Justice Ruth Bader Ginsburg poses during a group photo September 29, 2009 in the East Conference Room of the Supreme Court in Washington, DC. AFP PHOTO/Mandel NGAN (Photo credit should read MANDEL NGAN/AFP/Getty Images)

WASHINGTON - FEBRUARY 24: Supreme Court Justice Ruth Bader Ginsburg arrives for President Barack Obama's address to a joint session of Congress at the U.S. Capitol on February 24, 2009 in Washington, DC. U.S. President Barack Obama will address a joint session of the Congress at 9:01pm tonight where he plans to address the topics of the struggling U.S. economy, the budget deficit, and health care. (Photo by Brendan Hoffman/Getty Images)

Both The New York Times and The Washington Post skewered Ginsburg, with The Times publishing an editorial declaring on Wednesday Trump to be "right" in the war of words.

"Washington is more than partisan enough without the spectacle of a Supreme Court justice flinging herself into the mosh pit," The Times' board wrote.

Ginsburg ignited controversy when she made a series of remarks in recent days to the Associated Press, the Times, and CNN about the Trump candidacy. They were rare if not unprecedented remarks from a sitting Supreme Court justice on a presidential candidate.

"At first I thought it was funny," she told CNN on Tuesday of Trump's presidential bid. "To think that there's a possibility that he could be president ... I think he has gotten so much free publicity."

Trump went off on Ginsburg after, calling on her to resign and firing off a series of blistering tweets aimed at the justice.