Created
January 14, 2015 06:55
-
-
Save tomieric/9475f18319dfbb2529ff to your computer and use it in GitHub Desktop.
手机号码隐藏4位
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'13800138000'.replace(/(\d{3})(\d{4})(\d{4})/,'$1****$3') | |
// 138****8000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment