Home >Backend Development >PHP Tutorial >php regular_PHP tutorial

php regular_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 16:11:59892browse

1 Modifiers: It seems not mentioned
2 There seems to be a few matching patterns
For example, $cp = preg_replace( "@@is", "", $cp );
$cp = preg_replace( "@@is", "", $cp );
$cp = preg_replace( "@@is", "", $cp );
?> "@@I’m confused

Hope for help, thank you

"@@

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_ ...
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