Police rescued a woman Friday evening by pulling her from her car moments before it was crushed by a Long Island Rail Road passenger train in Bay Shore, Suffolk police said.

Metropolitan Transportation Authority Police later charged the driver of the car, Laurie Foulke, 43, of Islandia, with driving while intoxicated.

Multiple emergency calls went out around 5 p.m. about a car stuck on the LIRR tracks at the Brentwood Road crossing near Union Boulevard, police said.

Two Suffolk officers, Christopher Palazzo and Jereme Matthews, were on routine patrol and happened to arrive at the crossing just as the 911 calls were going out, police said.

The car, a Volkswagen Jetta, was southbound on Brentwood Road when the driver made an errant left turn at the crossing and wound up on the tracks, according to police.

As Foulke tried in vain to free the vehicle from the tracks, police said they attempted to contact the railroad to stop the train.

When that failed, Palazzo and Matthews quickly cleared the area and pulled Foulke from the car, police said.

advertisement | advertise on newsday

Moments later, as the officers and Foulke ran to safety, the train smashed into the Jetta, sending it "flying across the tracks," according to police.

No one was injured on the train or in the immediate vicinity, police said.

Foulke was to be arraigned Saturday in First District Court in Central Islip.

The train, with about 300 passengers on board, left Hunterspoint Avenue Station in Queens about 4 p.m. and was due to arrive in Montauk at 6:45, LIRR officials said.

Trains on the Montauk line were suspended after the crash eastbound until 6:25 p.m. and westbound until shortly after 7.

The train involved in the crash was able to continue on to its destination after a delay of about an hour and 40 minutes, the railroad said.