【发布时间】:2014-04-06 13:55:26
【问题描述】:
例如,我有 HTML:
<strong>this one</strong> <span>test one</span>
<strong>this two</strong> <span>test two</span>
<strong>this three</strong> <span>test three</span>
如何使用正则表达式使所有文本变得强大并跨越?
【问题讨论】:
-
为什么不使用DomDocument?
-
第一步是学习正则表达式。第二步是使用
preg_match等函数应用您的新知识。
标签: php regex function dom output