Regret is defined as the intellectual and emotional realization that negative acts produce negative effects, and that no lasting advantage can be gained from them.
The traditional image associated with regret is that of becoming aware of having swallowed poison: we feel a strong motivation to do whatever may be necessary to expel it and counter its effects.
Regret is not guilt. It is the urgent motivation to undo the harm we have caused others and ourselves.
Guilt is self-condemnation. It is most often impotent, self-indulgent, and produces the desire to hide, dissimulate, and obfuscate.