1 Modifiers: It seems not mentioned
2 There seems to be a few matching patterns
For example, $cp = preg_replace( "@@
Non-greedy mode, which means matching the first < after @
Sometimes [^>]+? is needed to get an exact match.
http://www.bkjia.com/PHPjc/313762.html
www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/313762.htmlTechArticle1 Modifier: It seems that it is not mentioned. 2 The matching mode seems to be a little lacking. For example?php $cp=preg_replace(" @script(.*?)/script@is","",$cp); $cp=preg_replace("@iframe(.*?)/iframe@is","",$cp); $cp=preg_ ...