Help for this page
$COMMENT_rex = qr{ <!-- # opening <!-- ... )* # 0 or more times -- \s* > # the ending --> }x;
$COMMENT_rex = qr{<!--[^-]*(?:(?!--\s*>)-(?:-[^-]*(?:-[^-]+)*)?[^-]*)*--\s*>};