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

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

WBOY
Release: 2016-06-23 14:02:43
Original
858 people have browsed it

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


回复讨论(解决方案)

/<script>[\d\D]*<\/script>/is </script>

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template