Periods

How can you distinguish between a period and a discharge of blood while pregnant? Can a pregnancy discharge have blood clots and uterus lining? How long can it be?