I'm stuck, can't figure this out 🙁
I want to go through a bunch of code and get rid of 2 comments, and anything in between the comments:
$code = 'foo
<!--Start-->
foo
bar
<!--End-->
bar';
This is what I came up with:
$code = preg_replace("'<!--Start-->(.*)<!--End-->'", "", $code);
It works if the comments and in between code are on a single line, but since they are on multiple lines it doesn't 🙁