This is needed because the previous match may leave in > or \n.