The Rules of Regret