php - Warning: preg_replace(): Unknown modifier 'g' -


i got error regex..

$strtmp = preg_replace('~(<\/characterstylerange>(.*?)\n*</characterstylerange>)~gim ' , "</characterstylerange>", $strtmp); 

error

warning: preg_replace(): unknown modifier 'g' in ....

why?

g implicit preg_replace(), don't need include it.


Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -