$domain = $ARGV[0]; if ($domain =~ /.exe$/) { $domain =~ s/\[a-z]//g; } print "$domain\n";