手机号中间四位,*号代替
string phone = "12345678912";
var newPhone = Regex.Replace(phone, "(\d{3})\d{4}(\d{4})", "$1****$2");
Console.WriteLine(newPhone );
string phone = "12345678912";
var newPhone = Regex.Replace(phone, "(\d{3})\d{4}(\d{4})", "$1****$2");
Console.WriteLine(newPhone );