110,534
社区成员
发帖
与我相关
我的任务
分享
public string test(string s)
{
string str = "aa11,ab11,ac11,aa26,aa25,ac33,ab23";
Regex reg = new Regex(s + "\\d+");
return reg.Replace(str, "xxxx");
}
public static string test(string s)
{
string str = "aa11,ab11,ac11,aa26,aa25,ac33,ab23";
return Regex.Replace(str, s + "\\d+", "xxxx");
}