银行卡 中间变*

xxx.replace(/^(d{4})d+(d{4})$/,'$1 **** **** $2')
原文地址:https://www.cnblogs.com/wsj1/p/15403910.html