正则表达式隐藏手机号中间数字

xxx.replace(/(.{5}).*(.{5})/, '$1******$2')  // 中间省略号隐藏,显示前5个和后5个
原文地址:https://www.cnblogs.com/s1118/p/9342513.html