President Donald Trump said he spoke to a predecessor who had expressed regret to him about not attacking Iran when they occupied the Oval Office.