C# 正则表达式隐藏电话号码中间四位为*

Regex.Replace(手机号, "(\\d{3})\\d{4}(\\d{4})", "$1****$2");

猜你喜欢

转载自blog.csdn.net/yelin042/article/details/89147168