In the figure we have the simplest configuration with a voltage regulator transistor. The voltage reference is given by the zener and the resistor calculated according to the desired voltage and current, according to the characteristics of the transistor.