It might help you,
using System;
using System.Linq;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string s = @"website(14)\\.net(4)";
var result = new String(s.Where(x => !Char.IsNumber(x) && x!='(' && x!=')' ).Select(x => x).ToArray());
Console.WriteLine(result);
}
}
}
This will produce following output,
website\\.net
Press any key to continue . . .
For more information about the Where and Select please see
How does it work in C#? - Part 3 (C# Linq in detail)[
^]
Hope it helps :)