A man accused of breaking into a Coral Springs home and sexually assaulting a woman in front of her newborn baby appeared in a Fort Lauderdale courtroom Tuesday morning.

Gary Holmes, 19, was arrested Sunday night in connection with the attack, which occurred at a home on Northwest 95th Avenue.

"Sir, you have three charges of sexual assault with a weapon," Judge John Hurley said in bond court Tuesday morning.

Investigators said they believe Holmes' motive was burglary when he entered the home through a back sliding-glass door, but that he was surprised to find the 25-year-old female homeowner still inside.

"You came in with a knife, demanded her valuables, then allegedly beat her and sexually battered her with her newborn baby in the bedroom," Hurley said.

The woman gave birth one week ago. Police said she was choked and raped during the attack but managed to call 911 from her cellphone. She was not able to put the phone to her ear and speak, but the open line alerted police of trouble, and officers traced the signal to the area, police said.

When the attacker ran, the woman called 911 a second time and pointed officers in the right direction.

Holmes was arrested, and police said he confessed in detail to the attack.

"You'll be held without bond until further order of the court," Hurley said.

Police said they are trying to determine if he is connected to other crimes, but he only faces charges in this one.

The alleged victim has been released from a hospital.