$str
= '<script<script>alert(document.cookie)</script>>alert(document.cookie)</script>';
$str
= preg_replace(
'%<script>.+</script>%i'
,
''
,
$str
);
print_r(
$str
);
$str
= "<script>********</script>";
$ret
= preg_repalce(
$reg
, "",
$str
);
$strRegex2
= '%<script>.+?<\/script>%';
$strRegex3
= '%<script>(?:(?!<\/script>).)+<\/script>%';</pre><div
class
=
"contentsignin"
>
Copy
after login</div></div><p> </p>
<p></p>
<p> The above is the greedy, non-greedy
and
backtracking analysis of PHP regular expression efficiency introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message
and
the editor will reply to you in time. I would also like to thank you all
for
your support of the PHP Chinese website! </p>
<p>For more PHP regular expression efficiency, greedy, non-greedy
and
backtracking analysis (recommended) related articles, please pay attention to the PHP Chinese website! </p>
<p><br></p>
</div>
</div>
<div
class
=
"wzconShengming_sp"
>
<div
class
=
"bzsmdiv_sp"
>Statement of this Website</div>
<div>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</div>
</div>
</div>
<ins
class
=
"adsbygoogle"
style=
"display:block"
data-ad-format=
"autorelaxed"
data-ad-client=
"ca-pub-5902227090019525"
data-ad-slot=
"2507867629"
></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<div
class
=
"AI_ToolDetails_main4sR"
>
<ins
class
=
"adsbygoogle"
style=
"display:block"
data-ad-client=
"ca-pub-5902227090019525"
data-ad-slot=
"3653428331"
data-ad-format=
"auto"
data-full-width-responsive=
"true"
></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<!-- <div
class
=
"phpgenera_Details_mainR4"
>
<div
class
=
"phpmain1_4R_readrank"
>
<div
class
=
"phpmain1_4R_readrank_top"
>
<img onerror=
"this.onerror=''; this.src='/static/imghw/default1.png'"
onerror=
"this.onerror=''; this.src='/static/imghw/default1.png'"
src=
"/static/imghw/hotarticle2.png"
alt=
""
/>
<h2>Hot Article</h2>
</div>
<div
class
=
"phpgenera_Details_mainR4_bottom"
>
<div
class
=
"phpgenera_Details_mainR4_bottoms"
>
<a href=
"https://www.php.cn/faq/1796793874.html"
title=
"How to fix KB5055523 fails to install in Windows 11?"
class
=
"phpgenera_Details_mainR4_bottom_title"
>How to fix KB5055523 fails to install in Windows 11?</a>
<div
class
=
"phpgenera_Details_mainR4_bottoms_info"
>
<span>3 weeks ago</span>
<span>By DDD</span>
</div>
</div>
<div
class
=
"phpgenera_Details_mainR4_bottoms"
>
<a href=
"https://www.php.cn/faq/1796793871.html"
title=
"How to fix KB5055518 fails to install in Windows 10?"
class
=
"phpgenera_Details_mainR4_bottom_title"
>How to fix KB5055518 fails to install in Windows 10?</a>
<div
class
=
"phpgenera_Details_mainR4_bottoms_info"
>
<span>3 weeks ago</span>
<span>By DDD</span>
</div>
</div>
<div
class
=
"phpgenera_Details_mainR4_bottoms"
>
<a href=
"https://www.php.cn/faq/1796791957.html"
title=
"Roblox: Dead Rails - How To Tame Wolves"
class
=
"phpgenera_Details_mainR4_bottom_title"
>Roblox: Dead Rails - How To Tame Wolves</a>
<div
class
=
"phpgenera_Details_mainR4_bottoms_info"
>
<span>4 weeks ago</span>
<span>By DDD</span>
</div>
</div>
<div
class
=
"phpgenera_Details_mainR4_bottoms"
>
<a href=
"https://www.php.cn/faq/1796792155.html"
title=
"Strength Levels for Every Enemy & Monster in R.E.P.O."
class
=
"phpgenera_Details_mainR4_bottom_title"
>Strength Levels
for
Every Enemy & Monster in R.E.P.O.</a>
<div
class
=
"phpgenera_Details_mainR4_bottoms_info"
>
<span>4 weeks ago</span>
<span>By 尊渡假赌尊渡假赌尊渡假赌</span>
</div>
</div>
<div
class
=
"phpgenera_Details_mainR4_bottoms"
>
<a href=
"https://www.php.cn/faq/1796797907.html"
title=
"Roblox: Grow A Garden - Complete Mutation Guide"
class
=
"phpgenera_Details_mainR4_bottom_title"
>Roblox: Grow A Garden - Complete Mutation Guide</a>
<div
class
=
"phpgenera_Details_mainR4_bottoms_info"
>
<span>2 weeks ago</span>
<span>By DDD</span>
</div>
</div>
</div>
<div
class
=
"phpgenera_Details_mainR3_more"
>
<a href=
"https://www.php.cn/article.html"
>Show More</a>
</div>
</div>
</div> -->
<div
class
=
"phpgenera_Details_mainR3"
>
<div
class
=
"phpmain1_4R_readrank"
>
<div
class
=
"phpmain1_4R_readrank_top"
>
<img onerror=
"this.onerror=''; this.src='/static/imghw/default1.png'"
src=
"/static/imghw/default1.png"
alt=
""
>
<h2>Hot AI Tools</h2>
</div>
<div
class
=
"phpgenera_Details_mainR3_bottom"
>
<div
class
=
"phpmain_tab2_mids_top"
>
<a href=
"https://www.php.cn/ai/undresserai-undress"
title=
"Undresser.AI Undress"
class
=
"phpmain_tab2_mids_top_img"
>
<img onerror=
"this.onerror=''; this.src='/static/imghw/default1.png'"
class
=
"lazy"
data-src=
"https://img.php.cn/upload/ai_manual/001/246/273/173411540686492.jpg?x-oss-process=image/resize,m_fill,h_50,w_50"
src=
"/static/imghw/default1.png"
alt=
"Undresser.AI Undress"
>
</a>
<div
class
=
"phpmain_tab2_mids_info"
>
<a href=
"https://www.php.cn/ai/undresserai-undress"
title=
"Undresser.AI Undress"
class
=
"phpmain_tab2_mids_title"
>
<h3>Undresser.AI Undress</h3>
</a>
<p>AI-powered app
for
creating realistic nude photos</p>
</div>
</div>
<div
class
=
"phpmain_tab2_mids_top"
>
<a href=
"https://www.php.cn/ai/ai-clothes-remover"
title=
"AI Clothes Remover"
class
=
"phpmain_tab2_mids_top_img"
>
<img onerror=
"this.onerror=''; this.src='/static/imghw/default1.png'"
class
=
"lazy"
data-src=
"https://img.php.cn/upload/ai_manual/001/246/273/173411552797167.jpg?x-oss-process=image/resize,m_fill,h_50,w_50"
src=
"/static/imghw/default1.png"
alt=
"AI Clothes Remover"
>
</a>
<div
class
=
"phpmain_tab2_mids_info"
>
<a href=
"https://www.php.cn/ai/ai-clothes-remover"
title=
"AI Clothes Remover"
class
=
"phpmain_tab2_mids_title"
>
<h3>AI Clothes Remover</h3>
</a>
<p>Online AI tool
for
removing clothes from photos.</p>
</div>
</div>
<div
class
=
"phpmain_tab2_mids_top"
>
<a href=
"https://www.php.cn/ai/undress-ai-tool"
title=
"Undress AI Tool"
class
=
"phpmain_tab2_mids_top_img"
>
<img onerror=
"this.onerror=''; this.src='/static/imghw/default1.png'"
class
=
"lazy"
data-src=
"https://img.php.cn/upload/ai_manual/001/246/273/173410641626608.jpg?x-oss-process=image/resize,m_fill,h_50,w_50"
src=
"/static/imghw/default1.png"
alt=
"Undress AI Tool"
>
</a>
<div
class
=
"phpmain_tab2_mids_info"
>
<a href=
"https://www.php.cn/ai/undress-ai-tool"
title=
"Undress AI Tool"
class
=
"phpmain_tab2_mids_title"
>
<h3>Undress AI Tool</h3>
</a>
<p>Undress images
for
free</p>
</div>
</div>
<div
class
=
"phpmain_tab2_mids_top"
>
<a href=
"https://www.php.cn/ai/clothoffio"
title=
"Clothoff.io"
class
=
"phpmain_tab2_mids_top_img"
>
<img onerror=
"this.onerror=''; this.src='/static/imghw/default1.png'"
class
=
"lazy"
data-src=
"https://img.php.cn/upload/ai_manual/001/246/273/173411529149311.jpg?x-oss-process=image/resize,m_fill,h_50,w_50"
src=
"/static/imghw/default1.png"
alt=
"Clothoff.io"
>
</a>
<div
class
=
"phpmain_tab2_mids_info"
>
<a href=
"https://www.php.cn/ai/clothoffio"
title=
"Clothoff.io"
class
=
"phpmain_tab2_mids_title"
>
<h3>Clothoff.io</h3>
</a>
<p>AI clothes remover</p>
</div>
</div>
<div
class
=
"phpmain_tab2_mids_top"
>
<a href=
"https://www.php.cn/ai/video-swap"
title=
"Video Face Swap"
class
=
"phpmain_tab2_mids_top_img"
>
<img onerror=
"this.onerror=''; this.src='/static/imghw/default1.png'"
class
=
"lazy"
data-src=
"https://img.php.cn/upload/ai_manual/001/246/273/173414504068133.jpg?x-oss-process=image/resize,m_fill,h_50,w_50"
src=
"/static/imghw/default1.png"
alt=
"Video Face Swap"
>
</a>
<div
class
=
"phpmain_tab2_mids_info"
>
<a href=
"https://www.php.cn/ai/video-swap"
title=
"Video Face Swap"
class
=
"phpmain_tab2_mids_title"
>
<h3>Video Face Swap</h3>
</a>
<p>Swap faces in any video effortlessly with our completely free AI face swap tool!</p>
</div>
</div>
</div>
<div
class
=
"phpgenera_Details_mainR3_more"
>
<a href=
"https://www.php.cn/ai"
>Show More</a>
</div>
</div>
</div>
<script src=
"https://sw.php.cn/hezuo/cac1399ab368127f9b113b14eb3316d0.js"
type=
"text/javascript"
></script>
<div
class
=
"phpgenera_Details_mainR4"
>
<div
class
=
"phpmain1_4R_readrank"
>
<div
class
=
"phpmain1_4R_readrank_top"
>
<img onerror=
"this.onerror=''; this.src='/static/imghw/default1.png'"
src=
"/static/imghw/default1.png"
alt=
""
>
<h2>Hot Article</h2>
</div>
<div
class
=
"phpgenera_Details_mainR4_bottom"
>
<div
class
=
"phpgenera_Details_mainR4_bottoms"
>
<a href=
"https://www.php.cn/faq/1796793874.html"
title=
"How to fix KB5055523 fails to install in Windows 11?"
class
=
"phpgenera_Details_mainR4_bottom_title"
>How to fix KB5055523 fails to install in Windows 11?</a>
<div
class
=
"phpgenera_Details_mainR4_bottoms_info"
>
<span>3 weeks ago</span>
<span>By DDD</span>
</div>
</div>
<div
class
=
"phpgenera_Details_mainR4_bottoms"
>
<a href=
"https://www.php.cn/faq/1796793871.html"
title=
"How to fix KB5055518 fails to install in Windows 10?"
class
=
"phpgenera_Details_mainR4_bottom_title"
>How to fix KB5055518 fails to install in Windows 10?</a>
<div
class
=
"phpgenera_Details_mainR4_bottoms_info"
>
<span>3 weeks ago</span>
<span>By DDD</span>
</div>
</div>
<div
class
=
"phpgenera_Details_mainR4_bottoms"
>
<a href=
"https://www.php.cn/faq/1796791957.html"
title=
"Roblox: Dead Rails - How To Tame Wolves"
class
=
"phpgenera_Details_mainR4_bottom_title"
>Roblox: Dead Rails - How To Tame Wolves</a>
<div
class
=
"phpgenera_Details_mainR4_bottoms_info"
>
<span>4 weeks ago</span>
<span>By DDD</span>
</div>
</div>
<div
class
=
"phpgenera_Details_mainR4_bottoms"
>
<a href=
"https://www.php.cn/faq/1796792155.html"
title=
"Strength Levels for Every Enemy & Monster in R.E.P.O."
class
=
"phpgenera_Details_mainR4_bottom_title"
>Strength Levels
for
Every Enemy & Monster in R.E.P.O.</a>
<div
class
=
"phpgenera_Details_mainR4_bottoms_info"
>
<span>4 weeks ago</span>
<span>By 尊渡假赌尊渡假赌尊渡假赌</span>
</div>
</div>
<div
class
=
"phpgenera_Details_mainR4_bottoms"
>
<a href=
"https://www.php.cn/faq/1796797907.html"
title=
"Roblox: Grow A Garden - Complete Mutation Guide"
class
=
"phpgenera_Details_mainR4_bottom_title"
>Roblox: Grow A Garden - Complete Mutation Guide</a>
<div
class
=
"phpgenera_Details_mainR4_bottoms_info"
>
<span>2 weeks ago</span>
<span>By DDD</span>
</div>
</div>
</div>
<div
class
=
"phpgenera_Details_mainR3_more"
>
<a href=
"https://www.php.cn/article.html"
>Show More</a>
</div>
</div>
</div>
<div
class
=
"phpgenera_Details_mainR3"
>
<div
class
=
"phpmain1_4R_readrank"
>
<div
class
=
"phpmain1_4R_readrank_top"
>
<img onerror=
"this.onerror=''; this.src='/static/imghw/default1.png'"
src=
"/static/imghw/default1.png"
alt=
""
>
<h2>Hot Tools</h2>
</div>
<div
class
=
"phpgenera_Details_mainR3_bottom"
>
<div
class
=
"phpmain_tab2_mids_top"
>
<a href=
"https://www.php.cn/toolset/development-tools/92"
title=
"Notepad++7.3.1"
class
=
"phpmain_tab2_mids_top_img"
>
<img onerror=
"this.onerror=''; this.src='/static/imghw/default1.png'"
class
=
"lazy"
data-src=
"https://img.php.cn/upload/manual/000/000/001/58ab96f0f39f7357.jpg?x-oss-process=image/resize,m_fill,h_50,w_72"
src=
"/static/imghw/default1.png"
alt=
"Notepad++7.3.1"
>
</a>
<div
class
=
"phpmain_tab2_mids_info"
>
<a href=
"https://www.php.cn/toolset/development-tools/92"
title=
"Notepad++7.3.1"
class
=
"phpmain_tab2_mids_title"
>
<h3>Notepad++7.3.1</h3>
</a>
<p>Easy-to-
use
and
free code editor</p>
</div>
</div>
<div
class
=
"phpmain_tab2_mids_top"
>
<a href=
"https://www.php.cn/toolset/development-tools/93"
title=
"SublimeText3 Chinese version"
class
=
"phpmain_tab2_mids_top_img"
>
<img onerror=
"this.onerror=''; this.src='/static/imghw/default1.png'"
class
=
"lazy"
data-src=
"https://img.php.cn/upload/manual/000/000/001/58ab97a3baad9677.jpg?x-oss-process=image/resize,m_fill,h_50,w_72"
src=
"/static/imghw/default1.png"
alt=
"SublimeText3 Chinese version"
>
</a>
<div
class
=
"phpmain_tab2_mids_info"
>
<a href=
"https://www.php.cn/toolset/development-tools/93"
title=
"SublimeText3 Chinese version"
class
=
"phpmain_tab2_mids_title"
>
<h3>SublimeText3 Chinese version</h3>
</a>
<p>Chinese version, very easy to
use
</p>
</div>
</div>
<div
class
=
"phpmain_tab2_mids_top"
>
<a href=
"https://www.php.cn/toolset/development-tools/121"
title=
"Zend Studio 13.0.1"
class
=
"phpmain_tab2_mids_top_img"
>
<img onerror=
"this.onerror=''; this.src='/static/imghw/default1.png'"
class
=
"lazy"
data-src=
"https://img.php.cn/upload/manual/000/000/001/58ab97ecd1ab2670.jpg?x-oss-process=image/resize,m_fill,h_50,w_72"
src=
"/static/imghw/default1.png"
alt=
"Zend Studio 13.0.1"
>
</a>
<div
class
=
"phpmain_tab2_mids_info"
>
<a href=
"https://www.php.cn/toolset/development-tools/121"
title=
"Zend Studio 13.0.1"
class
=
"phpmain_tab2_mids_title"
>
<h3>Zend Studio 13.0.1</h3>
</a>
<p>Powerful PHP integrated development environment</p>
</div>
</div>
<div
class
=
"phpmain_tab2_mids_top"
>
<a href=
"https://www.php.cn/toolset/development-tools/469"
title=
"Dreamweaver CS6"
class
=
"phpmain_tab2_mids_top_img"
>
<img onerror=
"this.onerror=''; this.src='/static/imghw/default1.png'"
class
=
"lazy"
data-src=
"https://img.php.cn/upload/manual/000/000/001/58d0e0fc74683535.jpg?x-oss-process=image/resize,m_fill,h_50,w_72"
src=
"/static/imghw/default1.png"
alt=
"Dreamweaver CS6"
>
</a>
<div
class
=
"phpmain_tab2_mids_info"
>
<a href=
"https://www.php.cn/toolset/development-tools/469"
title=
"Dreamweaver CS6"
class
=
"phpmain_tab2_mids_title"
>
<h3>Dreamweaver CS6</h3>
</a>
<p>Visual web development tools</p>
</div>
</div>
<div
class
=
"phpmain_tab2_mids_top"
>
<a href=
"https://www.php.cn/toolset/development-tools/500"
title=
"SublimeText3 Mac version"
class
=
"phpmain_tab2_mids_top_img"
>
<img onerror=
"this.onerror=''; this.src='/static/imghw/default1.png'"
class
=
"lazy"
data-src=
"https://img.php.cn/upload/manual/000/000/001/58d34035e2757995.png?x-oss-process=image/resize,m_fill,h_50,w_72"
src=
"/static/imghw/default1.png"
alt=
"SublimeText3 Mac version"
>
</a>
<div
class
=
"phpmain_tab2_mids_info"
>
<a href=
"https://www.php.cn/toolset/development-tools/500"
title=
"SublimeText3 Mac version"
class
=
"phpmain_tab2_mids_title"
>
<h3>SublimeText3 Mac version</h3>
</a>
<p>God-level code editing software (SublimeText3)</p>
</div>
</div>
</div>
<div
class
=
"phpgenera_Details_mainR3_more"
>
<a href=
"https://www.php.cn/ai"
>Show More</a>
</div>
</div>
</div>
<div
class
=
"phpgenera_Details_mainR4"
>
<div
class
=
"phpmain1_4R_readrank"
>
<div
class
=
"phpmain1_4R_readrank_top"
>
<img onerror=
"this.onerror=''; this.src='/static/imghw/default1.png'"
src=
"/static/imghw/default1.png"
alt=
""
>
<h2>Hot Topics</h2>
</div>
<div
class
=
"phpgenera_Details_mainR4_bottom"
>
<div
class
=
"phpgenera_Details_mainR4_bottoms"
>
<a href=
"https://www.php.cn/faq/java-tutorial"
title=
"Java Tutorial"
class
=
"phpgenera_Details_mainR4_bottom_title"
>Java Tutorial</a>
<div
class
=
"phpgenera_Details_mainR4_bottoms_info"
>
<div
class
=
"phpgenera_Details_mainR4_bottoms_infos"
>
<img src=
"/static/imghw/eyess.png"
alt=
""
>
<span>1661</span>
</div>
<div
class
=
"phpgenera_Details_mainR4_bottoms_infos"
>
<img src=
"/static/imghw/tiezi.png"
alt=
""
>
<span>14</span>
</div>
</div>
</div>
<div
class
=
"phpgenera_Details_mainR4_bottoms"
>
<a href=
"https://www.php.cn/faq/cakephp-tutor"
title=
"CakePHP Tutorial"
class
=
"phpgenera_Details_mainR4_bottom_title"
>CakePHP Tutorial</a>
<div
class
=
"phpgenera_Details_mainR4_bottoms_info"
>
<div
class
=
"phpgenera_Details_mainR4_bottoms_infos"
>
<img src=
"/static/imghw/eyess.png"
alt=
""
>
<span>1417</span>
</div>
<div
class
=
"phpgenera_Details_mainR4_bottoms_infos"
>
<img src=
"/static/imghw/tiezi.png"
alt=
""
>
<span>52</span>
</div>
</div>
</div>
<div
class
=
"phpgenera_Details_mainR4_bottoms"
>
<a href=
"https://www.php.cn/faq/laravel-tutori"
title=
"Laravel Tutorial"
class
=
"phpgenera_Details_mainR4_bottom_title"
>Laravel Tutorial</a>
<div
class
=
"phpgenera_Details_mainR4_bottoms_info"
>
<div
class
=
"phpgenera_Details_mainR4_bottoms_infos"
>
<img src=
"/static/imghw/eyess.png"
alt=
""
>
<span>1311</span>
</div>
<div
class
=
"phpgenera_Details_mainR4_bottoms_infos"
>
<img src=
"/static/imghw/tiezi.png"
alt=
""
>
<span>25</span>
</div>
</div>
</div>
<div
class
=
"phpgenera_Details_mainR4_bottoms"
>
<a href=
"https://www.php.cn/faq/php-tutorial"
title=
"PHP Tutorial"
class
=
"phpgenera_Details_mainR4_bottom_title"
>PHP Tutorial</a>
<div
class
=
"phpgenera_Details_mainR4_bottoms_info"
>
<div
class
=
"phpgenera_Details_mainR4_bottoms_infos"
>
<img src=
"/static/imghw/eyess.png"
alt=
""
>
<span>1261</span>
</div>
<div
class
=
"phpgenera_Details_mainR4_bottoms_infos"
>
<img src=
"/static/imghw/tiezi.png"
alt=
""
>
<span>29</span>
</div>
</div>
</div>
<div
class
=
"phpgenera_Details_mainR4_bottoms"
>
<a href=
"https://www.php.cn/faq/c-tutorial"
title=
"C# Tutorial"
class
=
"phpgenera_Details_mainR4_bottom_title"
>C# Tutorial</a>
<div
class
=
"phpgenera_Details_mainR4_bottoms_info"
>
<div
class
=
"phpgenera_Details_mainR4_bottoms_infos"
>
<img src=
"/static/imghw/eyess.png"
alt=
""
>
<span>1234</span>
</div>
<div
class
=
"phpgenera_Details_mainR4_bottoms_infos"
>
<img src=
"/static/imghw/tiezi.png"
alt=
""
>
<span>24</span>
</div>
</div>
</div>
</div>
<div
class
=
"phpgenera_Details_mainR3_more"
>
<a href=
"https://www.php.cn/faq/zt"
>Show More</a>
</div>
</div>
</div>
</div>