【发布时间】:2014-03-20 08:46:46
【问题描述】:
如何在我的代码中为一个字符串调用 2 个函数?
public static string ecleaner(string str)
{
return Regex.Replace(str, "[éèê]+", "e", RegexOptions.Compiled);
}
public static string acleaner(string str)
{
return Regex.Replace(str, "[áàâ]+", "a", RegexOptions.Compiled);
}
现在我想检查“Téèááést”这个词,之后它应该看起来像 Teaest。
【问题讨论】:
-
str = acleaner(ecleaner(str))