With vengeance on his mind, David Glenn Hobson escaped from a New Hampshire jail by scaling a razor wire fence before heading to Maine, where he eluded search teams for days by hiding in the woods and eliciting help from family and friends, officials said Wednesday.

Hobson was arrested Tuesday evening outside a store in Rochester, N.H., where his ex-girlfriend was employed but not working at the time.

Police believe revenge against his former girlfriend and her boyfriend drove him to escape from jail, send her a threatening text message and remain on the lam for five days as dozens of law enforcement officers searched for him with dogs, aircraft and even thermal-imaging equipment. Hobson apparently was angry that his ex-girlfriend had broken up with him and taken up with somebody else, officials said.

Given what they knew, police considered Hobson dangerous and resolute.

"The man climbed over a 10- to 12-foot fence with razor wire. That takes a certain amount of desperation, I would say," Maine State Police Lt. Louis Nyitray said at a press conference. "He then made threats to his ex-girlfriend and her boyfriend. When we put all those things together, it raised our anxiety level. He's desperate. He's determined."

Hobson, 34, didn't say anything during a brief appearance Wednesday in Ossipee District Court, where he was charged with escape. Bail was set at $500,000.

Hobson was awaiting trial on burglary charges in the Carroll County House of Corrections in Ossipee, N.H., when he escaped Dec. 1 by scaling a fence, climbing over razor wire and jumping off a 12-foot-high building.

A corrections officer in the recreation yard saw him jump the fence and radioed the control room, but he had disappeared into the woods by the time officers arrived, said David Sorensen, chairman of the Carroll County Board of Commissioners.

While on the lam, Hobson stole an SUV in Wakefield, N.H., that was found two days later on a rural road in Alfred with a bloody interior — believed to be from injuries he suffered while climbing over the razor wire.

Police later determined that Hobson drove the SUV late Friday to a Walmart in Scarborough, where he bought medical supplies, clothing, boots and snacks. Video cameras showed him inside the store and in the parking lot driving away, police said.

That same night, police arrested Hobson's father on charges he left medical supplies, food, water, clothing and blankets near his Alfred home for his son. On Monday, police found another stash of clothing, medical supplies and the Walmart receipt near his aunt's house in Alfred.

A tip led police to the grocery store where Hobson was arrested while getting into a car driven by another person. He had $3,000 in cash and illegal drugs on him, said David Cargill, New Hampshire's U.S. marshal. Cargill declined to say who was picking up Hobson but said police think Hobson was ready to leave the area.

"We think he was looking to get away, looking for another car and going to head out somewhere else," he said.

Hobson had cuts and bruises when he was arrested. After he first escaped, officials surmised that he was seriously hurt by the razor wire.

Officials still have questions about where Hobson got the cellphone and cash, how he got around and who else helped him. Additional charges could be filed, authorities said.

When asked how cooperative Hobson's relatives had been with police, Nyitray hesitated before saying, "I think they cooperated as much as they felt they needed to — and no more." Hobson's family declined to speak to reporters.

The only other inmate to escape from the 8-year-old Carroll County House of Corrections walked away from a farm crew in 2009, and he was quickly apprehended, Sorensen said.

When asked if the commission had discussed any improvements to the jail, Sorensen said that the board had considered adding more officers and that two were already in the proposed budget. The jail has 29 corrections officers and 56 inmates, with space for as many as 140, Sorensen said.


Associated Press writers Kathy McCormack and Lynne Tuohy in Concord, N.H., contributed to this report.