http://qs1969.pair.com?node_id=646970

gasho has asked for the wisdom of the Perl Monks concerning the following question:

Dear perl monks is there a quick regex way of removing comments from XML file, Bellow is an sample file Thanks
<?xml version="1.0" encoding="UTF-8"?> <Node_A> <!-- One Line Comment --> <Node_B> <!-- Two Line Comment Two Line Comment--> <Node_C> </Node_C> <!-- One Line Comment --> <!-- Multi Line Comment Line 3Comment 1Line Comment 2Line Comment Line 5Comment Line Comment--> </Node_B> </Node_A>
(: Life is short enjoy it :)