php正则
<body>
<table>本文来源gao@!dai!ma.com搞$$代^@码!网!搞gaodaima代码;<tr><td>asdasdas</td><td>asdasdasdasda</td><tr></table>
写个php正则 我想要<body> 中间的数据。
——解决方案——————–
preg_match(‘/<body>(.*?)<\/body>/is’,$s,$m);
echo $m[1];
php正则
<body>
<table>本文来源gao@!dai!ma.com搞$$代^@码!网!搞gaodaima代码;<tr><td>asdasdas</td><td>asdasdasdasda</td><tr></table>
写个php正则 我想要<body> 中间的数据。
——解决方案——————–
preg_match(‘/<body>(.*?)<\/body>/is’,$s,$m);
echo $m[1];