用于屏蔽某些JSON对象范围的正则表达式
我想屏蔽下面JSON请求中唯一的用于屏蔽某些JSON对象范围的正则表达式,json,regex,Json,Regex,我想屏蔽下面JSON请求中唯一的密码 {"mediumType":"telephoneNumber","contactDetails":{"phoneNumber":"1111146544"},"individualIdentification":{"password":"1234567890","pin":"
密码
{"mediumType":"telephoneNumber","contactDetails":{"phoneNumber":"1111146544"},"individualIdentification":{"password":"1234567890","pin":"1234","username":"dummy.test@gamil.com"},"birthDate":25/07/2000}
预期结果应该是这样的
{"mediumType":"telephoneNumber","contactDetails":{"phoneNumber":"1111146544"},"individualIdentification":{"password":"***********","pin":"1234","username":"dummy.test@gamil.com"},"birthDate":25/07/2000}
你能告诉我JSON的正则表达式应该是什么吗?最后,我做了正则表达式,得到了预期的结果 拜访