Matt Cain, who was 1-1 with a 1.71 ERA over his last three starts entering Friday, exited in the second inning with a strained right hamstring.