Hidden in the middle of the telephone number four

"15677778888".replace(/^(\d{3})\d{4}(\d{4})$/,'$1****$2');


输出:
"156****8888"

 

Guess you like

Origin www.cnblogs.com/fightmylife/p/11248255.html