$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
文章来源: blog.csdn.net,作者:lxw1844912514,版权归原作者所有,如需转载,请联系作者。
原文链接:blog.csdn.net/lxw1844912514/article/details/100028517
评论(0)