WESTPORT — Beating a team three times in the same season isn’t an easy task. The Staples girls tennis team accomplished that feat by eliminating one of the toughest teams left in the Class L tournament.

The Wreckers advanced to the Class L semifinals for a third straight season behind a 4-3 win over New Canaan Wednesday. Staples will visit Glastonbury in a rematch of last season’s semis, won by the Wreckers, on Thursday.

Staples swept all three doubles matches to topple the Rams for the third time in the last three weeks — The Wreckers ousted the Rams from the FCIAC semifinals.

“New Canaan is a very good team and I’ve said all year they’re a top five team in the state,” Staples coach Paco Fabian said. “We just matched up with them in doubles; all three times we played them were super close.”

The lone singles win for Staples came at No. 3, where Olivia Foster defeated New Canaan’s Ashley Walker in straight sets.

At No. 1 doubles, Megan Brown and Kristin Butler toppled Schuyler O’Mahon and Abbey Crowley 6-4, 6-2. At No. 2 doubles, Hannah Bjorkman and Gabriela Vega defeated Brittany Barber and Cameron Dayton 6-0, 6-4 and at No. 3 doubles, Olivia Daytz and Mackenzie Wood beat Elizabeth and Carroll Rudman 6-4, 6-0.

New Canaan’s Caroline Gordon had defeated Staples’ Tess Rubin in straight sets in both meetings prior to Wednesday, but Rubin put up a stern fight before falling 6-3 in the third set.

“It gave the other girls on the team confidence that (Rubin) was able to battle with New Canaan’s No. 1,” Fabian said. “She was consistent today; she was aggressive and the shots she was going for she was hitting them. Too bad she lost a close match but it was the best she’s played in a few weeks.”

With Darien’s elimination from the tournament due to a forfeit regarding an ineligible player, the bracket burst wide open. The Wreckers may now be considered the favorite to earn their first state title since 2003, but will have to get by an undefeated Tomahawks team that returned most of their lineup from a year ago.

“I think our girls realize they have a situation where our hardest match might be in the semifinals,” Fabian said. “We have to be on our A game or we won’t win; It’s going to be a very hard match, they haven’t lost all year and we have a long way to travel.”