Past domestic violence

To make a long story short...

I was violently attacked by my ex husband about a week before our first wedding anniversary. He was charged for it, but he convinced me to lie to the prosecutor and got the charges reduced. I never told my family it happened and I stayed with him for two more years. It never happened again, but it came close several times. We divorced about a year ago for unrelated reasons.

Recently, I've been dwelling a lot on that night that he attacked me and I thought I was going to die. I hate that I didn't leave him. I hate that he basically got away scott free. I hate that I never told my family. I can't really get past it... Its a strange feeling because it happened almost 3 years ago and I'm just now feeling enraged by the whole thing.

Any advice?