Charging intermittent, sometimes it does sometimes not

So I did one last double check of the voltage regulator, unplugged it and plugged it back in, checked the ground, there's a star washer thee and its grounded just fine. No change. Swapped in a new voltage regulator, boom fixed. Volt meter showing just under 14 volts at idle and 14 as i get more rpm. Thanks for the help 67dart273.