【发布时间】:2011-02-25 16:52:31
【问题描述】:
<br style="clear: both">
以下正则表达式对我不起作用,我做错了什么?
return preg_replace('#<br[^>]+style="clear:both"[^/>]#is', '', $output);
谢谢。
【问题讨论】:
-
不起作用,因为“clear:”和“both”之间的空格不匹配
标签: php regex html-parsing