$str = '<div style="margin:0px;text-align:left;padding:0px;">任意内容</div>'; $reg = '#<div style=".*">(.*)</div>#'; preg_match_all($reg , $str , $matches); var_dump($matches);
https://zhidao.baidu.com/question/332235315308735045.html
$str = '<div style="margin:0px;text-align:left;padding:0px;">任意内容</div>'; $reg = '#<div style=".*">(.*)</div>#'; preg_match_all($reg , $str , $matches); var_dump($matches);
https://zhidao.baidu.com/question/332235315308735045.html
转载于:https://www.cnblogs.com/lxwphp/p/8399420.html