求助一个正责
我要匹配一段内容
要得到这一段内容必须要 用 或者 连接2个匹配前的字符串。但是我不知道怎么联
<!--
Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/
-->
<th class="left">股市名称</th>
<th>最新</th>
<th>涨跌幅%</th>
td class='left' width='72'>
<div>纳斯达克</div></td>
$value=股市名称
<th>最新</th>
<th>涨跌幅%</th>
<td class="left" width="72">
<div>纳斯达克</div>
</td>
html;
preg_match_all('/(<th>]*>|<div>)(.*)(|)/isU', $value,$strs);
print_r($strs[2]); <div class="clear"></div>
</div>
</th>
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号