使用正则:Regex.Replace(手机号, "(\\d{3})\\d{4}(\\d{4})", "$1****$2"); 效果: 转载于:https://www.cnblogs.com/51net/p/10444237.html