答案1
答案2
- Ctrl+H
- 找什么:
\b\d{6}\K\d{6}(?=\d{4}\b)
- 用。。。来代替:
xxxxxx
- 打钩 环绕
- 选择 正则表达式
- Replace all
解释:
\b # word boundary, avoid to match more digits
\d{6} # 6 digits
\K # forget all we have seen until this position
\d{6} # 6 digits
(?= # positie lookahead, make sure we have after:
\d{4} # 4 digits
\b # word boundary, avoid to match more digits
)
截图(之前):
截图(之后):