I did not say the regex was removing the snippet of code. I said the comment tags were removing the snippet of code. If I have something like this:
If I leave both the comment tags, it stores nothing in the file. I can remove either the begin tag, or the end tag
manually, and the code will store in the file. I want to remove the comment tags with regex, and I guess I'm missing something. I don't speak fluent Perl, so I don't understand much yet. I am using another regex for the same textarea, and it works fine. I appreciate the help though.