Defenseman Marc Staal scored the tying goal early in the third period and then set up Marian Gaborik's game-winner late to rally the New York Rangers to a 5-2 victory over the Toronto Maple Leafs on Saturday night.

This one had all the signs of being another tough loss for the Rangers, who had already dropped three of their first four in the lockout-shortened season. But Staal got New York even at 2 at 7:36 of the third and then fired the drive that Gaborik deflected in with 7:03 left.

The Rangers held a commanding shots advantage throughout and finished with a 42-17 edge, but they trailed 2-0 in the first period.

Brad Richards, who also assisted on Gaborik's winner, got the Rangers within 2-1 in the second. Gaborik added two assists and an empty-net goal with 1:15 to go.

On the go-ahead goal, Richards nudged the puck up the wall to Staal, who unleashed a one-timer that Gaborik tipped past screened goalie James Reimer.

Brian Boyle then deflected in Michael Del Zotto's drive to make it 4-2 with 2:52 remaining.

Mikhail Grabovski and James van Riemsdyk scored first-period goals for the Maple Leafs, who fell to 2-1 on the road.