NEW YORK — Left winger Rick Nash scored his league-leading 32nd goal as the New York Rangers earned their third straight win, a 3-2 decision over the Boston Bruins at Madison Square Garden on Wednesday night.

Nash opened the scoring, then centers Derick Brassard and Derek Stepan tallied during the second period to erase a 2-1 deficit.

Rangers goaltender Cam Talbot, who received the start in place of an injured Henrik Lundqvist, made 18 saves.

Left winger Milan Lucic and center Patrice Bergeron scored for the Bruins. Goaltender Tuukka Rask stopped 22 shots in the loss.

Nash got behind the defense for a breakaway goal at 5:50 of the first period. The Bruins defense was caught flat-footed in the neutral zone, allowing Nash to streak along the right wing and beat Rask with a backhand to make it 1-0.

The Bruins answered with two goals in less than two minutes late in the period.

Lucic snapped a wrist shot from the slot that beat Talbot high to the stick side. Center David Krejci and right winger Reilly Smith worked the loose puck over the Lucic for his 11th of the season at 13:37.

Bergeron’s 13th of the season at 15:29 made it 2-1. Right winger Loui Eriksson drove the left wing and fed an unfettered Bergeron at the top of the crease for the relatively easy goal against a relaxed defense.

The Rangers erased that deficit with two goals in the second period.

Brassard scored his 13th of the year at 6:41 to make it 2-2. The Bruins were a step slow at every turn in their own zone and had no one in the middle of the ice to defend Brassard, who beat Rask with a wrist shot to the stick side.

Stepan put the Rangers ahead 3-2 at 16:56 with his ninth of the season. Nash flipped a pass just inside the offensive zone to Stepan, who glided to the net and fired a shot that tipped off the catching glove of Rask and dribbled into the net.

NOTES: The Bruins scratched D Matt Bartkowski and LW Jordan Caron. … Bruins LW Loui Eriksson had been dealing with a stiff neck but was in the lineup. … Rangers G Henrik Lundqvist showed no ill effects after taking a puck to the throat on Saturday. He finished the game, played and won again Monday before it became an issue. “We don’t know how long he’ll be out, but the injury is related to the injury he had over the weekend,” Rangers coach Alain Vigneault said Wednesday morning. … The Rangers scratched LW J.T. Miller and D Matt Hunwick.