Yep, it definitely varies with type of drug. I would not use an antibiotic beyond the expiry date; however, opiates such as codeine, Percocet, etc. do not lose their potency with age IIRC and should be fine but that's just my opinion. Opiates are the one drug I would never throw out.
As Eddie...