欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

php正則

 更新時間:2006年07月07日 00:00:00   作者:  

1  修飾符:好象沒有講
2  匹配模式好象有些少
比如<?php
$cp = preg_replace( "@<script(.*?)</script>@is", "", $cp );
            $cp = preg_replace( "@<iframe(.*?)</iframe>@is", "", $cp );
            $cp = preg_replace( "@<style(.*?)</style>@is", "", $cp );
?>出現(xiàn)"@<script(.*?)</script>@我就迷糊

希望得到幫助,多謝  

"@<script(.*?)</script>@

非貪婪模式,意思是匹配<script之后第一個<之間的東西,等價于@<script([^>]*)</script>@

有時候需要[^>]+?獲取精確匹配。

相關文章

最新評論