NEW YORK — Disgraced former congressman Anthony Weiner has acknowledged he communicated online with a girl who accused him of sending sexually explicit messages, but he said he’s also been the subject of a hoax.

An online news outlet, DailyMail.com, on Wednesday published an interview with the 15-year-old girl, who said the online text and video exchanges, including Skype chats in which Weiner asked her to undress and touch herself, went on for several months this year.

The Daily Mail also published screen grabs of texts provided by the girl, whose identity it didn’t disclose.

Weiner, who resigned from Congress in 2011, issued a statement apologizing but not directly addressing the issue of whether he had engaged in chats with the girl.

“I have repeatedly demonstrated terrible judgment about the people I have communicated with online and the things I have sent. I am filled with regret and heartbroken for those I have hurt,” Weiner wrote. “While I have provided the Daily Mail with information showing that I have likely been the subject of a hoax, I have no one to blame but me for putting myself in this position. I am sorry.”

Gov. Andrew Cuomo, a Democrat who was formerly the state’s attorney general, said “if the reports are true, it’s possibly criminal and it is sick.”