miscarriage?

almost two weeks late rhen yesterday cramping really bad for a few minutes then light pains in my stomach. brown discharge came out and then light spotting. today went to the bathroom and a lot of blood came out like a period, but now im not sure if i was pregnant and had a miscarriage or my period was just acting up. my periods have been so regular though it just freaked me out