in reply to Re^2: Removing XML comments with regexin thread Removing XML comments with regex
$xml =~ s/<!--.*?-->//sg; [download]
s/<!--.*?-->//gs [download]