Sentence 1: I regret I can't come to the party.
Sentence 2: I regret that I have to do this, but I don't have a choice.
Does regret mean the same thing in these two sentences?
different meanings