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

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -