Which regulator for 30V DC to 5V DC

Dear Joy,

25965 is great.. but study your current consumption.
Do you really require this IC ? Also a good PCB design is must for this IC.
On other hand, 317 is easy to use and no special PCB layout needed ...if your current requirement is not going beyond 1.5A