using System;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
public class Test
{
public static void Main()
{
var inputString = "ñaáme";
var result = string.Concat(Regex.Replace(inputString, @"(?i)[\p{L}-[ña-z]]+", m =>
m.Value.Normalize(NormalizationForm.FormD)
)
.Where(c => CharUnicodeInfo.GetUnicodeCategory(c) != UnicodeCategory.NonSpacingMark));
Console.Write(result);
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uR2xvYmFsaXphdGlvbjsKdXNpbmcgU3lzdGVtLkxpbnE7CnVzaW5nIFN5c3RlbS5UZXh0Owp1c2luZyBTeXN0ZW0uVGV4dC5SZWd1bGFyRXhwcmVzc2lvbnM7CgpwdWJsaWMgY2xhc3MgVGVzdAp7CglwdWJsaWMgc3RhdGljIHZvaWQgTWFpbigpCgl7CgkJdmFyIGlucHV0U3RyaW5nID0gIsOxYcOhbWUiOwoJCXZhciByZXN1bHQgPSBzdHJpbmcuQ29uY2F0KFJlZ2V4LlJlcGxhY2UoaW5wdXRTdHJpbmcsIEAiKD9pKVtccHtMfS1bw7FhLXpdXSsiLCBtID0+IAoJCQkJbS5WYWx1ZS5Ob3JtYWxpemUoTm9ybWFsaXphdGlvbkZvcm0uRm9ybUQpCgkJCSkKCQkJLldoZXJlKGMgPT4gQ2hhclVuaWNvZGVJbmZvLkdldFVuaWNvZGVDYXRlZ29yeShjKSAhPSBVbmljb2RlQ2F0ZWdvcnkuTm9uU3BhY2luZ01hcmspKTsKCQlDb25zb2xlLldyaXRlKHJlc3VsdCk7Cgl9Cn0=