<ul>
<LI><A href="=http://www.360buy.com/">京东商城</A> </LI>
<LI><A href="http://www.dangdang.com">当当网</A> </LI>
<LI><A href="http://www.vancl.com">凡客诚品</A> </LI>
</ul>
我只想删了<A href="http://www.dangdang.com">当当网</A>保留:><A href="http://www.vancl.com">凡客诚品</A> <A href="=http://www.360buy.com/">京东商城</A>怎么写
<LI><A href="=http://www.360buy.com/">京东商城</A> </LI>
<LI><A href="http://www.dangdang.com">当当网</A> </LI>
<LI><A href="http://www.vancl.com">凡客诚品</A> </LI>
</ul>
我只想删了<A href="http://www.dangdang.com">当当网</A>保留:><A href="http://www.vancl.com">凡客诚品</A> <A href="=http://www.360buy.com/">京东商城</A>怎么写
解决方案 »
- global 全局变量 出现的问题
- PHP编程,表单查询数据后,数据特定显示方式求解?
- 获取sohu邮箱联系人列表失败,求救!!!
- 怎么发现php脚本中的错误呀
- dreamweaver能不能像note那样,双击一个标签高亮所有相同标签
- cookie使用方面的问题,请指教
- D版的WIN2003服务器,SQL SERVER,会有会有风险?比如被微软发现会怎么样?
- 如何使用PHP来生成EXCEL文件?请各位帮忙了,在线等,急急!!!
- PHP生成excel表格
- 請問PHP程式漏洞,可能導致FTP上資料被刪除嗎?
- zend studio 9 配置xdebug调试
- 每个面页都有一个<title>标签,比如像商城那样,怎么让他每一页都不一样
<A href="http://wwww.dangdang.com/">当当网</A>只要是http://wwww.dangdang.com/的都能过滤其超链接
<LI><A href="=http://www.360buy.com/">京东商城</A> </LI>
<LI><A href="http://www.dangdang.com">当当网</A> </LI>
<LI><A href="http://www.vancl.com">凡客诚品</A> </LI>
</ul>我只想删了<A href="http://www.dangdang.com">当当网</A> <A href="http://www.dangdang.com/product.aspx?product_id=60047314">乐扣乐扣保鲜盒_当当网</A>
保留:><A href="http://www.vancl.com">凡客诚品</A> <A href="=http://www.360buy.com/">京东商城</A>
<ul>
<LI><A href="=http://www.360buy.com/">京东商城</A> </LI>
<LI><A href="http://www.dangdang.com">当当网</A> </LI>
<LI><A href="http://www.dangdang.com/product.aspx?product_id=60047314">乐扣乐扣保鲜盒_当当网</A> </LI>
<LI><A href="http://www.vancl.com">凡客诚品</A> </LI>
</ul>
txt;
echo preg_replace('/<LI><A href=".+(?=www\.dangdang\.com)[^\"]*".+<\/LI>/im','',$s);