A Milwaukee Brewers rotation hit hard this season by injuries suffered another blow on Tuesday night.

Wily Peralta, in the midst of one of his best starts, was forced to leave in the sixth inning with a left hamstring strain in a 4-0 victory over the Washington Nationals at Nationals Park.

The Brewers, who were playing without three starters in Jean Segura, Carlos Gomez and Jonathan Lucroy, scored all four of their runs in the eighth inning to help snap their season-high-tying six-game losing streak.

Juan Francisco doubled to drive in the first two runs, and Martin Maldonado and Jeff Bianchi drove in the final two with an RBI hit apiece in that eighth.

Peralta is the third Brewers pitcher to have to leave a game with hamstring issues, joining Jim Henderson and Marco Estrada.

The hope afterward was Peralta would be able to avoid the disabled list, unlike his two staff mates.

"We'll see tomorrow," manager Ron Roenicke said. "It tightened up on him. It wasn't like he felt something pull. Whether it was lack of fluids or whatever, hopefully it was just tightness."

The storyline for the Brewers entering the game was the challenge in facing Nationals starter Stephen Strasburg. But after a shaky first inning, Peralta matched the ace right-hander pitch for pitch and was arguably better.

Peralta surrendered a leadoff single and then walked two in that first inning before getting out of the bases-loaded jam with a groundout by Ian Desmond. A botched throw by Rickie Weeks on a surefire double-play ball had extended the frame two batters earlier.

Strasburg allowed his initial base runner in the second inning when he walked Francisco, and his first hit in the third when Norichika Aoki beat out a two-out infield single.

The Brewers threatened in the fourth when Aramis Ramirez singled and Francisco walked again, but Sean Halton grounded into an inning-ending 6-4-3 double play to cap a nine-pitch at-bat.

Again in the sixth, Milwaukee had a shot when Logan Schafer walked, Rickie Weeks reached on an error and Ramirez walked to load the bases with one out.

Strasburg recovered by striking out Francisco looking on a big breaking ball and then Halton struck out after being unable to check his swing to end the rally.

"That's the first time really seeing him live — explosive fastball, really ridiculous curveball," Roenicke said. "You don't see too many curveballs like that. We had a chance and you've got a strikeout pitcher there that knows what he's doing, knows how to get a strikeout."

Peralta, meanwhile, was rolling right along, matching Strasburg.

He surrendered singles in both the second and third before pitching a perfect fourth and fifth. Unbeknownst to most, it was around that time Peralta started feeling the tightness in his hamstring.