I have been working on this for some time. As I researched the PHP warning, I believe the following PHP code requires delimiters at the last half to make it work.
Here is the code,
$pee = preg_replace('!<p><!--(.*?)--></p>!ise', " '<!--' . stripslashes(clean_pre('$1')) . '-->' ", $pee);
This is the warning I get,
Warning: preg_replace(): Unknown modifier '-'
I found that when I put the latter half of the code on a new line, that is where the warning refers, so its the latter half that needs the syntax fixed.
It appears the dashes are considered as modifiers, so apparently using delimiters will correct that. I tried to add delimiters, but each failed and the warning was not resolved.
I am rather new at PHP, your help is appreciated.
Thanks
<!` as being your expression, so it's saying "who buddy, you have this random modifier `-` that doesn't exist, mind telling me what that is" and bam voila, escape `!` or use a different delimiter like `~`.
– ctwheels Nov 27 '17 at 22:49