Let assume that $body is equal to
something
that
does
not
interest
me
<!-- start -->
some
html
code
<!-- end -->
something
that
does
not
interest
me
If I use
$body=preg_replace("(.*)<!-- start -->(.*)<!-- end -->(.*)","$2",$body);
I obtain:
Warning: preg_replace() [function.preg-replace]: Unknown modifier '<'
How have I to correct?