As talks dragged on near midnight, Israeli and Hamas officials, communicating through Egyptian mediators, expressed hope that a deal soon would be reached but cautioned that it was far from certain.???If there is a possibility of achieving a long-term solution to this problem by diplomatic means, we prefer that.