So I've been using the modifers (http://php.net/manual/en/reference.p....modifiers.php) I thought correctly but have run into a few problems recently.
I had this
I then triedCode:$code_is = preg_replace('/<li><p.*?>(.*?)<\/p>.*?<\/li>/s', "<li>$1</li>", $code_is);
andCode:$code_is = preg_replace('/<li><p.*?>(.*?)<\/p>.*?<\/li>/m', "<li>$1</li>", $code_is);
None of which worked as I intended. I'm trying to replace any line item with a paragraph in it there are new lines and tabs in there. None of the above solutions work, the below solution somewhat works but not for all occurances so I figure there must be a better way or modifer.Code:$code_is = preg_replace('/<li><p.*?>(.*?)<\/p>.*?<\/li>/sm', "<li>$1</li>", $code_is);
Code:$code_is = preg_replace('/<li>[.|\n|\r|\t]*?<p.*?>(.*?)<\/p>[.|\n|\r|\t]*?<\/li>/s', "<li>$1</li>", $code_is);
