Cary Grant made three movies I can think of in which he played a man either divorced or about to be be divorced from the female lead, with whom he traded wisecracks until the two of them reunited:
His Girl FridayThe Awful TruthPhiladelphia StoryAny others?
Ralph Bellamy got to play the guy the woman almost marries in two of them.