A suspect in two violent Washington, D.C., attacks was arrested after he left his name and phone number for his second victim, officials said.

Demarco Myles, 19, is accused of raping a Howard University student in her dorm room on Nov. 2, then pinning the victim to her bed with his leg and writing down his name and phone number.

"He stated something to the effect of, 'Since you don't know me, here's my number b--,'" according to court documents.

The victim told Myles she did not need his number, the documents said, so he took a marker and crossed it out.

Police arrived at the scene and were able to trace the number to a residence belonging to Myles' mother.

When he was brought in for questioning, Myles admitted he stabbed a woman on Oct. 26 after barging into her home, but claimed he only wanted to take her belongings, according to the court documents.

Myles said he did not mean to kill anyone and asked if the victim, who suffered multiple stab wounds but survived, had died, the court documents said.

The 19-year-old maintained, according to the documents, that the alleged incident at Howard University was "consensual."

A statement on the university's website said a mass email alert was sent out to students immediately after the assault.

"The safety of our campus community is paramount; we have consistently enhanced security and will take additional steps to bolster security in residence halls on a 24-hour basis," the statement said.

Cathy Lanier, chief of the Metropolitan Police Department of the District of Columbia, said detectives worked "around the clock since the first assault" in order to make the arrest.

"Had we not located him, it is our belief that he would have continued to attack women," she said.

A message left with Myles' public defender, Liyah Brown, was not immediately returned.