Period or not

How do I know if I’m pregnant when your period is irregular? I was freaked out when I was one week late but then my period came.