From the top of the lineup down Saturday night, the Washington Capitals played the disciplined and grinding game Coach Adam Oates so often stresses. But doing all the right things almost wasn’t enough to capture a win, and it took a late-game comeback to ensure the results matched the preceding effort.

Washington fell behind with 1 minute 51 seconds remaining in regulation, but what transpired afterward showed a team determined not to accept anything less than two points. The Capitals staged a dramatic rally, forcing overtime, where Alex Ovechkin scored the game-winner to secure a 3-2 victory over the New York Islanders at Nassau Veterans Memorial Coliseum.

“It was an exciting win because we played a great hockey game. They did, too. It was a great game to be in,” said goaltender Braden Holtby, who finished with 37 saves. “It was one of those wins that it took everyone in this dressing room to win it, and we pulled it out.”

This was a game ruled by hard work with battles in the greasy areas along the boards or for territory in front of the net. It may have been precisely the type of game the Capitals needed, one that required them to build on the good habits that helped them snap a four-game losing streak a night earlier against Montreal — traits like establishing a strong forecheck and providing support to help win possession battles throughout the game.

After a strong but scoreless first period, the Capitals took a 1-0 lead a little less than nine minutes into the second period when Aaron Volpatti scored on a solid shift from the fourth line, whose no-frills and gritty style was well-suited for this type of game.

Martin Erat, back in the lineup for the first time since he went public with his trade demand on Monday, started the play when he fought for control of the puck behind the net and then swept out low along the goal line before firing a pass across the crease to Tom Wilson. The rookie took two shots before the rebound bounced out in front. Then Volpatti swatted the puck past Islanders netminder Anders Nilsson, who recorded 27 saves in his first start since March 10, 2012.

But the Capitals couldn’t build on their advantage, and a power play early in the third period proved anything but beneficial. Washington’s man advantage has struggled recently, going four for its past 32, and on this occasion it allowed Cal Clutterbuck to score a shorthanded goal on a breakaway that knotted the game at 1 less than four minutes into the third.

The contest appeared headed toward overtime when Thomas Vanek found a loose puck in front and fired to give the Islanders a 2-1 lead on a questionable play with less than two minutes to play in regulation. Earlier in the sequence, Holtby appeared to cover the puck twice, but the play was never whistled dead.