in reply to Removing html comments with regex
Esh:
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:
<!-- BEGIN N4MATIONS POOP -->
Several lines of
code in here
<!-- END N4MATIONS POOP -->
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.