using System.Text.RegularExpressions;
static Regex extendedCharacterSet = new Regex( "[^a-zA-Z0-9+\\.\\ \\!\\&\\'\\(\\)\\*\\+\\,\\-\\.\\/\\:\\;\\?\\=\\~\\@\\[\\]\\{\\}\\\\|\\<\\>\\#\"]+");
public static void Main()
String testStr = "ABC€£123def";
var notes = StripNonDigits(testStr);
Console.WriteLine(notes);
public static string StripNonDigits( string s )
return extendedCharacterSet.Replace(s,"") ;