The first one doesn't get rid of underscores....but it does get rid of spaces.
To get rid of multiple hypens you could just do:
THat may give an error due to the position of the hyphens so if it does just escape the first two, like \-\-
To get rid of multiple hypens you could just do:
Code:
$Title =~ s/--+/-/g;THat may give an error due to the position of the hyphens so if it does just escape the first two, like \-\-