Im trying to store a snippet along with other html in a file from a form textarea field. Everything else stores in there. The comment makes the stuff in the snippet dissapear. I tried removing other regex to avoid any conflicts. If I remove one of the comments, the snippet shows up even without the regex. Otherwise, the snippet dissapears <!-- comments -->
snippet of code <!-- comments -->