Como usar o Regex.Replace para substituir duas seqüências de caracteres ao mesmo tempo?
Eu tenho o seguinte método que está substituindo um sinal de "libra" do nome do arquivo, mas eu também quero ser capaz de substituir o "único apóstrofo" ao mesmo tempo. Como eu posso fazer isso? Este é o valor de filename = Provider license_A'R_Ab # acus Settlements_1-11-09.xls
static string removeBadCharPound(string filename)
{ // Replace invalid characters with "_" char.
//I want something like this but is NOT working
//return Regex.Replace(filename, "# ' ", "_");
return Regex.Replace(filename, "#", "_");
}