LM317 for 25V. Circuit for high Power Supply Rejection.

The total PSRR power supply rejection ratio is 102dB.
Of this is 80dB thanks to LM317.
For even better PSRR you can use @Elvee D-Noizator:

LM317 25V_02.jpg