⊗ppPmRgMdMu 267 of 447 menu

Several Regex Modifiers in PHP

After the delimiter, you can write several modifiers. Example:

<?php preg_replace('#[a-z]+#iU', '!', 'aaa bbb'); ?>

Explain how the modifiers change the behavior of the regex in the following code:

<?php preg_replace('#[a-z]+#Uu', '!', 'aaa bbb'); ?>

Explain how the modifiers change the behavior of the regex in the following code:

<?php preg_replace('#[a-z]+#Xx', '!', 'aaa bbb'); ?>

Explain how the modifiers change the behavior of the regex in the following code:

<?php preg_replace('#[a-z]+#ui', '!', 'aaa bbb'); ?>
English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline