You could also use a adjustable regulator ... they are more common and are usually configured using a resistor divisor.