What exactly does a voltage regulator do?
They come in a wide variety and they take higher voltages and keep them steady at a set lower voltage. It is generally a good idea to use a capacitor in the power line before the regulator to assist in eliminating ripples to keep the part cooler. When you purchase one, it will list the ranges it can operate in. Supply voltage to it in this rating and it will output exactly the prescribed voltage.