<!--begin-->
<a href="" target=_blank><font color=#000000>中嗯</font></a>
jhwengwsdgwenydhasdh
中嗯
2354235en;;/w;,.;
<!--end-->
我想匹配类似]<!--begin--><!--end-->当中的内容的时候.我发现一个问题不知道是什么原因
我把$pattern='/<!--begin-->([.\n]+)<!--end-->/';
为什么这样无法匹配 只要.加了[]就是无法 是函数原因还是php里的正则表达式不一样
然后我上网找了一下 这样就可以匹配 为什么嗯
$pattern='/<!--begin-->(.+)<!--end-->/s';
请高手详细说明这其中的原因 至少让我清楚下 为什么是这样的 有什么参考文献或资料说明的不PHP