Bleeding

Been bleeding like a normal period for 2 weeks, got curious because 2 weeks is way too long for my period which is normally 5 days. Out of curiosity I took a pregnancy test which turned out positive! Went to the ER to confirm the pregnancy was not ectopic as I had an ectopic a little over a year ago. They did an ultrasound and couldn't find the baby anywhere, could just be too early, or it was a miscarriage. Has this happened to anyone and gone through to have a normal pregnancy?