As talks dragged on near midnight, Israeli and Hamas officials, communicating through Egyptian mediators, expressed hope that a deal would soon be reached, but cautioned 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.