PHILADELPHIA -- Travis Sanheim completed a three-goal comeback for the Philadelphia Flyers when he scored his second of the night in the third period of a 6-5 shootout win against the Boston Bruins at Wells Fargo Center on Monday.
"Throughout the season, you are going to have games where you find yourselves in holes, and good teams find a way to battle back and get a point," Sanheim said. "And we got two in the shootout."
[WATCH: All Bruins vs. Flyers highlights]
Travis Konecny scored the only goal of the shootout in the top of the fifth round. The game ended when Boston's Brad Marchand misplayed and overskated the puck at center ice.
"I was just trying to get going and just missed it," Marchand said. "I know the rule, you touch it on a penalty shot, it's your shot. Unfortunate. It's a tough way to lose on a play like that."
Video: PHI@BOS: Marchand misses the puck during shootout
Sean Couturier had a goal and two assists for Philadelphia (24-16-6), which got its third win in nine games. Carter Hart made 26 saves.
David Krejci scored two goals for Boston (27-8-12), which has a four-game point streak (3-0-1). Jaroslav Halak made 34 saves.
Defenseman Zdeno Chara played his 1,000th regular-season game for the Bruins.
Sanheim tied the game 5-5 at 12:58 of the third. Halak stopped his initial shot, but the defenseman got the rebound behind the net, skated in front, and scored on his third shot in the sequence.
"I was surprised it kept coming back to me," Sanheim said. "They had a couple chances to get rid of it, but it kept coming back to my stick. It was good. Guess it was meant to go in the net."
Video: BOS@PHI: Sanheim ties the game on third try
Krejci gave Boston a 5-2 lead at 7:21 of the second period with his second of the game, but Couturier scored to make it 5-3 at 13:12, and Connor Bunnaman's first NHL goal got Philadelphia within 5-4 at 14:46.
Sanheim scored the tying goal at 4-on-4, and Bruins coach Bruce Cassidy was unhappy with how they handled pressure from the Flyers.
"We've got three different guys circling out of there; it's inexcusable," he said. "You're in the third period, you've got a lead that's gotten away from you ... no compete in front of the net, no urgency to keep the puck out of the net from three of our players."
Anders Bjork gave Boston a 1-0 lead at 4:15 of the first period, and Krejci scored a power-play goal at 16:49 to make it 2-0.
It was the 14th straight game the Bruins scored on the power play. They're the first NHL team to do that since the Pittsburgh Penguins from Oct. 5-Nov. 5, 2007.
Video: BOS@PHI: Pastrnak slips backhander past Hart
Kevin Hayes scored a power-play goal at 18:22 to get the Flyers within 2-1, but the Bruins went ahead 3-1 33 seconds into the second period on David Pastrnak's NHL-leading 36th goal.
Sanheim made it 3-2 at 1:12 with a wrist shot through traffic from above the circles.
Charlie Coyle scored at 4:50 to give Boston a 4-2 lead.
They said it
"That was one of those games where we should have taken control and kind of played strong enough to finish it. It's something that we've got to correct. We've got to be better next time we have a lead like that. Make sure we finish." -- Bruins captain Zdeno Chara
"It's a big positive for us. We went through a little stretch where we were struggling, so to come back against a team like this, it puts us right up there. We know we can win against these teams." -- Flyers forward Travis Konecny
Need to know
It was the 200th regular-season game between the Flyers and Bruins. Philadelphia is 73-96-10 with 21 ties, and Boston is 106-61-12 with 21 ties. ... Chara joined five others who have played 1,000 games with the Bruins (Ray Bourque, 1,518; Johnny Bucyk, 1,436; Patrice Bergeron, 1,065; Don Sweeney, 1,052; and Wayne Cashman, 1,027). ... Boston forward Jake DeBrusk had two assists and has seven points (three goals, four assists) during a four-game point streak. ... Flyers defenseman Mark Friedman got his first NHL point with an assist on Bunnaman's goal. ... The last time Philadelphia came back from down three to win was a 4-3 shootout victory against the Buffalo Sabres on Oct. 25, 2016.
Bruins: At the Columbus Blue Jackets on Tuesday (7 p.m. ET; SN360, SNE, FS-O, NESN, NHL.TV)
Flyers: At the St. Louis Blues on Wednesday (8 p.m. ET; NBCSN, TVAS)
Video: Flyers rally from three-goal deficit for shootout win