Regret with Breakup

I broke up with my boyfriend two days ago. Since then I have been deeply upset and in pain. I am starting to think that I am regretting my decision but do not want to act out of a fleeting emotion just to avoid the pain that I am feeling in the moment. When will I know if this feeling of regret is real or just a way to avoid the pain I am feeling right now.