Power from 24VAC

tylernt:
How about a Murata OKI-78SR-5/1.5-W36-C? The ebay one linked to looks like a clone of the Murata. The Murata is only $5, max Vin is 36V though so you could drop your 40V with a resistor between your bridge and the power supply. Dropping voltage from an unregulated transformer shouldn't be dramatic, it won't take much resistance (and thus wattage) to get a lot of voltage drop.

Think about that for a moment. At what current draw do you size the series dropping resistor for? If you size it for the maximum rated current of the regulator (so that the applied voltage to the power supply is 36 volts or less), what value of input voltage will the regulator 'see' with little or zero current going to the load?

Left