我只是尝试如下屏蔽String,但经过一些搜索和研究后却找不到我想要的东西。
字符串a =“ 0123456789”被屏蔽=“ xxxxxxx789”
我在以下问题中修改了解决方案http://stackoverflow.com/questions/41224637/masking-first-and-last-name-string-with,但它只是更改了与模式不匹配的String。我不知道如何更改模式以符合我的意思。
string masking swift
masking ×1
string ×1
swift ×1