use strict; use warnings; use Regexp::Common qw/comment/; # <== my $html = <<'END_HTML';
Hello World
It is Sunday!this should stay here
END_HTML $html =~ s/$RE{comment}{HTML}//g; # <== print "$html\n"; ####
Hello World
It is Sunday!
this should stay
here