Stomach flu or Pregnancy??

The past 3 days I have woke up at 2-3 am, thinking im starving, only to throw up exorcist style after a few bites. I have a constant constipated feeling even though I've been pooping regularly. Im so miserable, but not pregnant miserable, this feels so much worse.