关于php贪婪匹配的疑惑

 $str="
        <ul>
            <li>aaa</li>
            <li>bbb</li>
            <li>ccc</li>
        </ul>
    ";
preg_match("/<li>.+?<\/li>/",$str,$s);
var_dump($s);

源代码输出:
Array
(
    [0] => Array
        (
            [0] => <b>replace</b> a <b>mother</b>
        )

    [1] => Array
        (
            [0] => replace</b> a <b>mother
        )

)
为什么会出现 replace</b> a <b>mother这个结果。

没问题啊。。preg_match只输出一项才对啊。。
preg_match_all才是所有匹配,你去人贴对代码了?