using System; using System.Text.RegularExpressions; class Program { static void Main(string[] args) { var obj = "www-hoge-fuga-foo.com/bar.php"; Console.WriteLine(new Regex("www|hoge|fuga|.php").Replace(obj, "")); } }