Pregnant woman getting married:
The Sages decreed that a divorcee or widow who is pregnant or within 24 months from after birth, must wait until the baby is 24 months old in order to remarry. This applies even if she is no longer nursing her child. The 24 months is counted beginning from the day of birth of the child. After 24 months she may remarry. If there is a double Adar within these 24 months, she is to initially be stringent and not consider it as part of the 24 months, and hence wait a total of 25 months. The above law however carries the following exceptions, in which case she must only wait 90 days, as is the law by any other widow or divorcee:
- If the child passed away she may remarry right away, so long as 90 days have passed since the divorce or death of her husband.
- If the child was weaned before the divorce or death, she may remarry right away, so long as 90 days have passed since the divorce or death.
- If her milk dried up before the divorce or death, she may remarry right away, so long as 90 days have passed since the divorce or death.
 Michaber 13:11; Yevamos 42a
 The reason: The Gemara ibid suggests several reasons for this prohibition, the common denominator of all the reasons is because it can jeopardize the safety of the child: The following are the reasons mentioned: a) If she becomes pregnant again from the second husband during her current pregnancy it could mutate and injure the child of the first pregnancy. [This is physically possible, and is called superfetation. Its last recorded occurrence was in 2009 by a couple in Arkansas who became pregnant with a second child several weeks after her first pregnancy.] b) The intercourse of the second husband may injure the child through pressing too much on him. 3) She may become pregnant during nursing, which will diminish her milk and jeopardize the health of the child. The Gemara negates the first two reasons and accepts the third reason as the final reason, and so writes Beis Shmuel 13:20. The Rambam however records the second reason-see Beis Shmuel ibid!
 Michaber ibid
 Rama ibid