Regulator that can handle voltage on its output
You sometimes see a diode connected from the output of a regulator back to the input, such that under normal powered operation, the diode is reverse biased. If you remove the input power, the diode can conduct, and clamps the regulator input voltage to not more than a diode drop below the output voltage.