which gave the output:cat t.xml | perl -e '$/ = ""; $_ = <>; s/<!--.*?-->//gs; print;'
<Node_A> <Node_B> <Node_C> </Node_C> </Node_B> </Node_A>
In reply to Re^2: Removing XML comments with regex
by tuxz0r
in thread Removing XML comments with regex
by gasho
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |