对话内容：
Mike: Jane, what brings you here?
Jane: Well, Officer Mike, I'm here to represent the accused in the robbery case that you recently investigated.
Mike: Yes, I remember that. It was quite a high-profile case.
Jane: That's why I wanted to discuss it with you. I was hoping to get more information about the evidence you gathered.
Mike: Sorry, Jane, but I can't divulge that information. The case is still ongoing.
Jane: I understand that, but as the defendant's counsel, I am entitled to know the evidence against him.
Mike: I'm sorry, Jane, but I can't help you there. You'll have to wait till the trial.


问题：
律师和警察在一起讨论案件的细节和证据是否合法？这是合法的吗？


根据对话内容回答这个问题。
律师和警察之间的讨论是符合规定的。然而，律师可以根据案件细节出示法律请求，但警察不能透露任何尚未公开的证据或信息，因为这可能会干扰司法程序。