Home >Backend Development >PHP Tutorial > php 正则里边不要含有重复标签

php 正则里边不要含有重复标签

WBOY
WBOYOriginal
2016-06-13 12:51:19768browse

php 正则里面不要含有重复标签
麻烦好心人帮我修改一下下面的正则,要求所匹配到的字符串里面不能再含有script标签。弄了一个上午了,不懂正则,没办法。谢谢了。
$pregfind = array(
"//eiU",
'/<script>player\(\'player_\'\+\d+,\'(.*)\'.+<\/script>/eiU',<br /> ); <div class="tag "> </script>


------解决方案--------------------
/<script>[\d\D]*<\/script>/is <div class="clear"> </script>
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