正則表達(dá)中,[^>]是什么意思?
$p?=?"|<[^>]+>(.*?)</[^>]+>|i"; $str?=?"<b>example:?</b><div?align=left>this?is?a?test</div>"; preg_match_all($p,?$str,?$matches); print_r($matches);
$p?=?"|<[^>]+>(.*?)</[^>]+>|i"; $str?=?"<b>example:?</b><div?align=left>this?is?a?test</div>"; preg_match_all($p,?$str,?$matches); print_r($matches);
2020-10-19
舉報(bào)
2020-10-26
不是以>開頭的任意字符。