They are just voltage regulators, no reason you can't use them in place of more modern packages, if you need regulators.
If they are SELLING for $30, slap them on ebay and get what you can get. Then you can buy new 7812s for 50 cents each, if you later need some.