Bad relationship for 8yrs

I want out of this relationship. It's awful I don't know what else to do I don't know where to begin to separate we have two kids and a third on the way, but this is not healthy at all. I've been with the same person since I was 19 and nothing has gotten better. I wish I could just start over and be with someone who likes me for me and not someone who just wanted to change everything about me. I had a lot of Hope for Life and there is very little left I don't know how to be with someone who constantly tells me I'm nothing and I'll never amount to things and then gets mad that things don't work out. He rants and raves and then is nice long enough to get what he wants and then it goes right back. He hates women I just want to go. He has the same character traits as my mom who when you made a mistake would go on for hours about it and then expects you to be better than next time. I feel so stupid all the time underworld I can't go to my family or his family. It never met someone who was like this other than my mom and it sounds pathetic and stupid and I don't have anyone else to compare it to no one else in my life ever treated me this way or ever made me feel so long it is now doing it to our kids I feel like a horrible mom I don't know how to get away and completely dependent on him and his family warned me but I believed him over them because I didn't have the best family relationships and I knew people could be cruel. But they were absolutely right I wish I wouldve listened to them and gotten away or at least saved money and hid it away where he couldn't use it or spend it. Now I'm carrying his third child and he seems manic over the possibility that it could be a boy. How do I leave? He puts all of his insecurities and issues on the kids and acts as if they are just horrible children when they're not. They don't do everything right and they make mistakes but they're not the demons he makes them out to be. I don't want to keep doing this to my children and putting them through this I just want to get away and take them somewhere safe..