I tried:
echo preg_replace('<!--hello//-->','','<p>This is some text<!--hello//-->This is some more text</p>');
Trying to return
<p>This is some textThis is some more text</p>
But instead I got
<p>This is some text<>This is some more text</p>
Why do the brackets remain in the string?
Thanks for the help!
Edit: This question is not looking for the right regex to use...it's moreso why the function preg_replace is behaving weirdly.