$report =~ tr/0-9//d; # numbers $report =~ tr/-_.//d; # underscores, dashes, and periods $report =~ s/crs//ig; # crs, lower or upper $report =~ s/html//g; # filter out the phrase 'html'