Torque,
Your discrete solution probably looks like this (x8) --
Tap the 12-30V line into a low wattage resistor (1/8 W, 16 Kohm or larger is fine), placing its output on the cathode of a 3V zener diode, with the zener's anode to ground. The zener diode will regulate its cathode to its...