If I want to remove
<!-- bof_foo -->
some content
<!-- eof_foo -->
from a string, what is the pattern
parameter for preg_repl
? I would have thought that
$pattern = "/<!-- bof_foo -->[.\n]*<!-- eof_foo -->/";
would work, but it didn't.
If I want to remove
<!-- bof_foo -->
some content
<!-- eof_foo -->
from a string, what is the pattern
parameter for preg_repl
? I would have thought that
$pattern = "/<!-- bof_foo -->[.\n]*<!-- eof_foo -->/";
would work, but it didn't.