Replacing the alternator involves removing the old alternator and installing a new one (or a rebuilt one). If the problem is with the voltage regulation, you would replace the *separate* voltage regulator, which is usually mounted on the fender well or nearby. You wouldn't replace the entire alternator for a bad voltage regulator.