PHILADELPHIA — Claude Giroux earned his first career hat trick in the regular season and the Philadelphia Flyers clinched a playoff berth in their final regular-season game Saturday with a 5-0 victory against the New York Rangers.

Giroux finished with 34 goals and 102 points. He extended his career highs in points and goals while becoming the sixth player in franchise history to reach 100 points in a season.

Michael Raffl and Ivan Provorov also scored for the Flyers, who needed at least one point to make the playoffs and eliminate the Florida Panthers from postseason contention.

The Flyers (42-26-14) are returning to the playoffs for the first time since 2016, and will be seeking their third Stanley Cup. The club won back-to-back titles in 1973-74 and 1974-75.

The Flyers’ captain scored his first two goals during Philadelphia’s dominating second period in which it outscored the Rangers 3-0 thanks in part to an 18-5 shots advantage.

Giroux put the Flyers ahead 2-0 with 7:36 left in the second when his shot from the left circle got through Henrik Lundqvist’s legs after a screen by Nolan Patrick.

Raffl made it a three-goal lead when he took the rebound of Radko Gudas’ shot from the point with a turnaround shot that got past Lundqvist’s right pad with 2:07 left in the period.

Philadelphia set a club record for the quickest two goals when Giroux fired past Lundqvist’s glove side with a wrist shot from the slot just six seconds after Raffl’s goal to make it 4-0. Raffl set up the play by intercepting a Rangers pass at the blue line and dropping a pass to Giroux.

Giroux scored his third on a breakaway with 9:49 left. Hundreds of hats littered the ice, causing a seven-minute delay.

The Rangers (34-39-9), who are out of the postseason for the first time since 2009-10, ended their regular season with their ninth loss in the last 11.

Brian Elliott made 17 saves in his second game in goal after returning in Thursday’s 4-3 win over Carolina following a 25-game absence because of core muscle surgery on Feb. 13.

Elliott was shaky in the win over the Hurricanes, allowing a pair of soft goals while making 19 saves. He didn’t have much action against the Rangers.

Provorov got the Flyers on the board six minutes into the game when he scored on a six-on-five advantage as a result of a delayed penalty. Sean Couturier sent the puck toward the crease from the left of the goal, and the puck caromed off Provorov’s right shoulder and past Lundqvist. The goal stood after an officials’ review.

HURRICANES 3, LIGHTNING 2: Elias Lindholm scored 49 seconds into overtime, and Carolina won at Raleigh, North Carolina, to prevent Tampa Bay from clinching the top spot in the Eastern Conference.

CAPITALS 5, DEVILS 3: Alex Ovechkin scored twice to make it an NHL-leading 49 goals as Washington won at home.

JETS 4, BLACKHAWKS 1: Andrew Copp scored twice and Connor Hellebuyck set an NHL record for wins in a season by an American goaltender as Winnipeg won at home.

ISLANDERS 3, RED WINGS 2: John Tavares scored 3:16 into overtime as New York rallied at Detroit.

PANTHERS 4, SABRES 3: Florida was eliminated from playoff contention even after Vincent Trocheck scored late in the third period to win at Buffalo, New York.

MAPLE LEAFS 4, CANADIENS 2: Zach Hyman scored early in the third period, Frederik Andersen made 31 saves to set a franchise mark with his 38th win of the season, and Toronto won at home.