Do not go there.
Before anything else, check all of the connections to the alternator and the battery and the ground lead(s) to the vehicle chassis.
Then if the alternator is indeed bust, buy a new alternator and a new battery to go with it.
Even if you could replace the regulator, that may...