Boston Bruins right wing David Backes (42) celebrates his goal against the St. Louis Blues during the second period of an NHL hockey game Thursday, Jan. 17, 2019, in Boston. (AP Photo/Elise Amendola)
Boston Bruins right wing David Backes (42) celebrates his goal against the St. Louis Blues during the second period of an NHL hockey game Thursday, Jan. 17, 2019, in Boston. (AP Photo/Elise Amendola) Credit: Elise Amendola

Boston — Chris Wagner scored the go-ahead goal 5:27 into the third period, Tuukka Rask tied a Boston record with his 252nd career win and the Bruins beat the St. Louis Blues 5-2 on Thursday night.

Rask made 28 saves and matched the franchise mark set by Cecil “Tiny” Thompson, who was 252-153 with 63 ties. Rask, the 2014 Vezina Trophy winner as the NHL’s top goalie, is 252-145-56 in 474 games with Boston.

Torey Krug, David Backes, Brad Marchand and Sean Kuraly also scored for the Bruins, who had lost three of four (1-2-1) after a season-high five-game winning streak.

Ryan O’Reilly and Carl Gunnarsson had the goals for St. Louis. Jake Allen made 22 saves.

Blues left wing David Perron extended his NHL-leading and career-best point streak to 13 games (six goals, 10 assists) with a secondary assist on O’Reilly’s goal.

St. Louis had won four of six (4-1-1) coming in and earned at least one point in each of its previous five road games.

Wagner’s tiebreaking goal came after Jakob Forsbacka-Karlsson’s pass from the opposite blue line put him a step in front of Blues captain Alex Pietrangelo. Wagner tucked the puck under Allen’s glove after his deke put the goalie off balance.

Marchand ripped in a rebound after Charlie McAvoy’s wraparound attempt bounced off Allen’s pads to make it 4-2 with 6:48 remaining.

Kuraly tacked on an empty-net goal with 51.5 seconds left.

Krug’s uncontested wrister in the slot gave Boston a 1-0 lead 3:31 into the second period.

St. Louis tied it 53 seconds later, when O’Reilly tucked in his own rebound from the right of the crease after Rask got a glove on his first attempt.

Gunnarsson gave the Blues a 2-1 lead when he capped a give-and-go with Jaden Schwartz with a one-timer from the left circle with 6:24 to play in the second.

Backes, a former Blues captain, got a piece of Zdeno Chara’s slap shot to tie it again with four minutes left in the period. Backes’ goal came with four seconds left on a Bruins power play following Robert Bortuzzo’s cross-checking penalty.

Islanders 4, Devils 1

Uniondale, n.y. — Anders Lee scored twice in the Islanders’ three-goal first period, helping New York to its ninth win in 11 games.

Michael Dal Colle notched his first NHL goal and Jordan Eberle also scored, Nick Leddy had two assists and Robin Lehner made 16 saves to improve to 10-1-0 in his last 11 appearances.

Rangers 4, Blackhawks 3

New York — Chris Kreider had a goal and an assist, Henrik Lundqvist moved into a tie for sixth place on the NHL’s career wins list and New York beat Chicago.

Mats Zuccarello, Filip Chytil and Mika Zibanejad also scored to help New York win for the third time in four games after a five-game skid. Lundqvist stopped 24 shots to tie Terry Sawchuk with 445 wins.

Wild, Hurricanes Make Trade

St. Paul, Minn. — The Minnesota Wild acquired center Victor Rask from the Carolina Hurricanes for left wing Nino Niederreiter, in a swap of underperforming but still-young players on long-term contracts.

The 25-year-old Rask, a native of Sweden, has one goal and five assists in 26 games this season for the Hurricanes. He’s in the third season of a six-year, $24 million contract.

The 26-year-old Niederreiter, a native of Switzerland, has nine goals and 14 assists in 46 games this season for the Wild. He’s in the second season of a five-year, $26.25 million contract.

The trade was made on Thursday, before the Wild hosted Anaheim. The Hurricanes host Ottawa on Friday.

The Wild acquired right wing Pontus Aberg in a deal on Wednesday that sent AHL center Justin Kloos to the Ducks.