Java手機號隱藏中間4位和郵箱隱藏,身份證隱藏
1.Java代碼中隱藏 2.使用MySql查詢時隱藏。 這里會使用Mysql的insert函數 實際使用 原文:https://www.jianshu.com/p/d8c70f67c5b5 ...
原文:https: blog.csdn.net yuanquanl article details Java隱藏手機號中間四位隱藏身份證數字 phone.replaceAll d d d , idCard.replaceAll d d w , 表示正則表達式里面第一個 第二個 括號里面的匹配內容 ...
2018-03-29 15:58 0 5394 推薦指數:
1.Java代碼中隱藏 2.使用MySql查詢時隱藏。 這里會使用Mysql的insert函數 實際使用 原文:https://www.jianshu.com/p/d8c70f67c5b5 ...
用正則替換 不用正則,用字符串替換: 名字隱藏間字符 手機號碼和身份證前三后四脫敏 ...
//手機號 保留前3 后4 //身份證號碼保留前4位,后4位 截圖: ...
SELECT INSERT(mobile, 4, 4, '****')AS Mobile from Users ; SELECT STUFF(Mobile ,4,4,'***') AS Mobil ...
var tel = "13122223333"; var reg = /^(\d{3})\d{4}(\d{4})$/; tel = tel.replace(reg, "$1****$2"); ...
...
Java-----隱藏手機號 身份證號 中間四位 phone.replaceAll("(\\d{3})\\d{4}(\\d{4})","$1****$2"); 152****4799 idCard.replaceAll("(\\d{4})\\d{10}(\\w ...