CALGARY, Alberta — Johnny Gaudreau finished his hat trick in overtime after Jiri Hudler tied the game with 1.2 seconds left and the Calgary Flames beat the Boston Bruins 5-4 on Friday night.

Gaudreau trailed a 2-on-1 rush and took a pass from former Bruin Dougie Hamilton in the high slot. He stickhandled in on Tuukka Rask and beat the goaltender with a low shot.

Hudler tapped in a cross-crease pass from Sean Monahan with Calgary goalie Karri Ramo pulled for an extra skater.

Mark Giordano also scored and the Flames won their second straight after ending a three-game skid.

Brad Marchand scored on a penalty shot with 1:06 left to put Boston up 4-3. It was Marchand’s second goal of the game, and the Bruins also got scores from Matt Beleskey and Zdeno Chara.

Ramo had 34 saves. Rask made 23 saves in relief of Jonas Gustavsson, who stopped 8 of 11 shots before being pulled.

ISLANDERS 2, BLUES 1: Frans Nielsen and Kyle Okposo scored in the shootout to lift the New York Islanders to a 2-1 victory over the St. Louis Blues on Friday night.

Mikhail Grabovski tied it early in the third period for the Islanders, and Thomas Greiss, making his third start in four games, stopped 31 shots through overtime. He also denied both St. Louis shooters in the tiebreaker.

OILERS 2, STARS 1: Jordan Eberle scored 45 seconds into overtime and Anders Nilsson made 42 saves to lift last-place Edmonton to a home win over first-place Dallas.

The Oilers won their second straight game but remained tied for last in the Pacific Division with Calgary.

FLYERS 4, DEVILS 3: Matt Read scored on a 2-on-1 break 3:24 into overtime as visiting Philadelphia notched its season-high fourth straight victory.

Jakub Voracek set up power-play goals by red-hot Wayne Simmonds and Claude Giroux, and Michal Neuvirth made 15 saves while helping the Flyers to their third regulation win (3-10-2) over New Jersey since the start of the 2012-13 season.

Pierre-Edouard Bellemare also scored for Philadelphia.

Mike Cammalleri, Stefan Matteau and Kyle Palmieri scored for the Devils in a feisty game that featured a couple of scrums and one fight.

Read skated with Sean Couturier for his big 2-on-1 in OT. He faked several shots with defenseman Andy Greene taking away his passing lane, and then fired the puck off Cory Schneider’s shoulder, with the shot crawling into the net for his fourth goal.

Cammalleri had tied it with 1:01 left in regulation with a power-play goal on which the Devils had pulled Schneider for an extra skater.

SABRES 5, COYOTES 2: Evander Kane scored twice in the third period and Chad Johnson made 18 saves to help Buffalo win at home.

Sam Reinhart, Jamie McGinn and Marcus Foligno also scored for Buffalo. The Sabres have had at least four goals in four straight games for the first time in nine seasons, and have won three of their last four games.

Arizona has lost three in a row to begin a five-game trip. Max Domi scored both goals for the Coyotes, and Mike Smith made 23 saves.

Kane scored on a short-handed breakaway 2:40 into the third period for a 3-1 lead. It was the Sabres’ first shorthanded goal of the season. He later added an empty-net score and has four goals and two assists in his last three games.

PANTHERS 2, BLUE JACKETS 1: Aleksander Barkov won it in the shootout and visiting Florida won to extend its winning streak to five games.

The Panthers have also won five straight road games to tie the franchise mark set in 2007.

NOTES

RED WINGS: Detroit has lost forwards Drew Miller and Teemu Pulkkinen to injuries that are expected to keep both out for over a month.

The team says Miller is expected to miss about six weeks with a broken jaw, and Pulkkinen is expected to miss six to eight weeks with a dislocated right shoulder.

The 31-year-old Miller has one goal and one assist in 26 games this season. The 23-year-old Pulkkinen has six goals and five assists in 24 games.

THE CHICAGO BLACKHAWKS have the most expensive hockey ticket on the resale market, both at home and on the road, according to several online ticket brokers.

A Blackhawks game at the United Center tops the NHL leaderboard with a median resale price of $225, based on sales data from the beginning of the season to Wednesday. The Rangers rank second at $204 and are one of five Original Six teams, along with the Hawks, that placed in the top six.

At the other end, the Hurricanes rank last on Vivid Seats’ list at $56, while the Panthers are last on SeatGeek at $44.

LIGHTNING: Coach Jon Cooper agreed to a multiyear contract extension with Tampa Bay, the defending Eastern Conference champions, after reaching the Stanley Cup final.

Cooper has a .602 winning percentage since being hired in March 2013.

He led the Lightning to the playoffs each of his first two full seasons behind the bench.