Jesus doesn’t comment on the subject of rape and has only kindness for people in distress. In Jewish law, the punishment for rape is very severe: the perp must pay a large fine and marry the woman if she chooses to marry him. He is not allowed to divorce her. You can read more here. This is a complex response to a difficult problem in the ancient world, which had no police or jails, and where a raped woman, especially if bearing a child, might not be able to marry anyone else.