Home  >  Article  >  Backend Development  >  一个正则表达式的有关问题。有点不理解了

一个正则表达式的有关问题。有点不理解了

WBOY
WBOYOriginal
2016-06-13 12:38:37816browse

一个正则表达式的问题。有点不理解了

<?php<br />
$a='<span class="ico-block"><a href="#"><img  src="http://www.oxford-royale.co.uk/2013/wp-content/themes/ora/images/ico19.png" / alt=" 一个正则表达式的有关问题。有点不理解了 " ></a></span><h2>';<br />
$a=preg_replace("/<[^>]+?>/","\\0\\2\\4\\5",$a);<br />
var_dump($a);<br />
?>


这个好像错了,请问错在哪里了?有点不明白了

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn