把网页所有以下代码,如:
第一个:
<a trace="auction" tracenum="2" href="http://item.baidu.com/ite" target="_blank" title="百度知道" data-spm-anchor-id="a230r.1.14.341">
第二个:
<a trace="auction" tracenum="2" href="http://item.baidu.com/i31" target="_blank" title="百度知道2" data-spm-anchor-id="a530r.2.17.341">
一直到几十个。。。。。
全部替换成<a>
怎么用正则表达式表达【】里面的内容?
<a trace="auction" tracenum="2" href="【http://item.baidu.com/ite】" target="_blank" title="【百度知道】" data-spm-anchor-id="【a230r.1.14.341】">
【要来成品哦!直接能用的!谢谢了】