// replaces all / in a String with _ str = str.replace(/\//g,'_');
Regex.Replace( "input string", @"[a-zA-Z]+", "replace string" );