Help for this page
#Reduce excessive hyphens (to underscores) $name =~ s/^(.+\-.+)(\-)+(.+\-.+$)/$1\_$3/g ;